vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sun Nov 10 18:01:35 2013 +0200| [ae301440f9bb5464bd67ea9637e4001b89c3f8f1] | committer: Rémi Denis-Courmont
decomp: provide PTS delay > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ae301440f9bb5464bd67ea9637e4001b89c3f8f1 --- modules/stream_filter/decomp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/stream_filter/decomp.c b/modules/stream_filter/decomp.c index 3a421e1..df821d5 100644 --- a/modules/stream_filter/decomp.c +++ b/modules/stream_filter/decomp.c @@ -89,6 +89,7 @@ struct stream_sys_t int read_fd; bool can_pace; bool can_pause; + int64_t pts_delay; }; extern char **environ; @@ -275,6 +276,9 @@ static int Control (stream_t *stream, int query, va_list args) case STREAM_GET_SIZE: *(va_arg (args, uint64_t *)) = 0; break; + case STREAM_GET_PTS_DELAY: + *va_arg (args, int64_t *) = p_sys->pts_delay; + break; case STREAM_SET_PAUSE_STATE: { bool paused = va_arg (args, unsigned); @@ -316,6 +320,7 @@ static int Open (stream_t *stream, const char *path) stream_Control (stream->p_source, STREAM_CAN_PAUSE, &p_sys->can_pause); stream_Control (stream->p_source, STREAM_CAN_CONTROL_PACE, &p_sys->can_pace); + stream_Control (stream->p_source, STREAM_GET_PTS_DELAY, &p_sys->pts_delay); /* I am not a big fan of the pyramid style, but I cannot think of anything * better here. There are too many failure cases. */ _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
