]> git.sesse.net Git - vlc/blobdiff - src/input/input.c
input/input.c: Define DEMUX_CAN_SEEK and correctly set "seekable" accordingly. (This...
[vlc] / src / input / input.c
index e26d1949598ad8569e20b4fc5563068b66dcf435..9fd3eb4fc904e847eb2f9770b14be02e993703d7 100644 (file)
@@ -2266,10 +2266,11 @@ static int InputSourceInit( input_thread_t *p_input,
                             &in->b_can_pause ) )
             in->b_can_pause = VLC_FALSE;
 
-        /* FIXME todo
-        demux2_Control( in->p_demux, DEMUX_CAN_SEEK,
+        int ret = demux2_Control( in->p_demux, DEMUX_CAN_SEEK,
                         &val.b_bool );
-        */
+        if( ret != VLC_SUCCESS )
+            val.b_bool = VLC_FALSE;
+        var_Set( p_input, "seekable", val );
     }
     else
     {