Added back pause (timeshift has to accept ACCESS_SET_PAUSE_STATE)
authorLaurent Aimar <fenrir@videolan.org>
Thu, 7 Jun 2007 22:21:55 +0000 (22:21 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 7 Jun 2007 22:21:55 +0000 (22:21 +0000)
modules/access_filter/timeshift.c

index dde1c68..961e749 100644 (file)
@@ -522,27 +522,29 @@ static int Control( access_t *p_access, int i_query, va_list args )
 
     switch( i_query )
     {
-        case ACCESS_CAN_SEEK:
-        case ACCESS_CAN_FASTSEEK:
-            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t* );
-            *pb_bool = VLC_TRUE;
-            break;
-
-        case ACCESS_CAN_CONTROL_PACE:   /* Not really true */
-        case ACCESS_CAN_PAUSE:
-            pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t* );
-            *pb_bool = VLC_TRUE;
-            break;
-
-        case ACCESS_GET_MTU:
-            pi_int = (int*)va_arg( args, int * );
-            *pi_int = 0;
-            break;
-
-        /* Forward everything else to the source access */
-        default:
-            return access2_vaControl( p_access->p_source, i_query, args );
-
+    case ACCESS_CAN_SEEK:
+    case ACCESS_CAN_FASTSEEK:
+        pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t* );
+        *pb_bool = VLC_TRUE;
+        break;
+
+    case ACCESS_CAN_CONTROL_PACE:   /* Not really true */
+    case ACCESS_CAN_PAUSE:
+        pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t* );
+        *pb_bool = VLC_TRUE;
+        break;
+
+    case ACCESS_GET_MTU:
+        pi_int = (int*)va_arg( args, int * );
+        *pi_int = 0;
+        break;
+
+    case ACCESS_SET_PAUSE_STATE: 
+        break;
+
+    /* Forward everything else to the source access */
+    default:
+        return access2_vaControl( p_access->p_source, i_query, args );
     }
     return VLC_SUCCESS;
 }