Correctly detect rewind (rtsp).
authorLaurent Aimar <fenrir@videolan.org>
Fri, 15 May 2009 21:46:05 +0000 (23:46 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Fri, 15 May 2009 23:03:32 +0000 (01:03 +0200)
src/input/input.c

index aeeebe8..cfb3065 100644 (file)
@@ -2433,7 +2433,7 @@ static int InputSourceInit( input_thread_t *p_input,
             in->b_can_pause = false;
         var_SetBool( p_input, "can-pause", in->b_can_pause || !in->b_can_pace_control ); /* XXX temporary because of es_out_timeshift*/
         var_SetBool( p_input, "can-rate", !in->b_can_pace_control || in->b_can_rate_control ); /* XXX temporary because of es_out_timeshift*/
-        var_SetBool( p_input, "can-rewind", !in->b_rescale_ts && !in->b_can_pace_control );
+        var_SetBool( p_input, "can-rewind", !in->b_rescale_ts && !in->b_can_pace_control && in->b_can_rate_control );
 
         bool b_can_seek;
         if( demux_Control( in->p_demux, DEMUX_CAN_SEEK, &b_can_seek ) )