[vlc-commits] stream_filter: smooth: non live streams can control pace
Francois Cartegnie
git at videolan.org
Tue Oct 28 15:14:55 CET 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Oct 28 14:13:04 2014 +0100| [191c27813256fc4a3a9875414e7f3793fc9c0105] | committer: Francois Cartegnie
stream_filter: smooth: non live streams can control pace
Fixes most of glitches for non live streams, especially on
quality change.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=191c27813256fc4a3a9875414e7f3793fc9c0105
---
modules/stream_filter/smooth/smooth.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/stream_filter/smooth/smooth.c b/modules/stream_filter/smooth/smooth.c
index 2c42e60..0919a2d 100644
--- a/modules/stream_filter/smooth/smooth.c
+++ b/modules/stream_filter/smooth/smooth.c
@@ -774,9 +774,11 @@ static int Control( stream_t *s, int i_query, va_list args )
break;
case STREAM_CAN_FASTSEEK:
case STREAM_CAN_PAUSE: /* TODO */
- case STREAM_CAN_CONTROL_PACE:
*(va_arg( args, bool * )) = false;
break;
+ case STREAM_CAN_CONTROL_PACE:
+ *(va_arg( args, bool * )) = !p_sys->b_live;
+ break;
case STREAM_GET_POSITION:
*(va_arg( args, uint64_t * )) = p_sys->playback.boffset;
break;
More information about the vlc-commits
mailing list