[vlc-devel] commit: Fixed dummy input Control function. (Laurent Aimar )
git version control
git at videolan.org
Thu Sep 3 23:02:29 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Sep 3 23:01:09 2009 +0200| [80e58d03041b981ef25617d424440c93a972f784] | committer: Laurent Aimar
Fixed dummy input Control function.
DEMUX_GET_PTS_DELAY must not fail for an access_demux.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80e58d03041b981ef25617d424440c93a972f784
---
modules/misc/dummy/input.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/modules/misc/dummy/input.c b/modules/misc/dummy/input.c
index b7cedf3..c0879ab 100644
--- a/modules/misc/dummy/input.c
+++ b/modules/misc/dummy/input.c
@@ -117,5 +117,15 @@ void CloseDemux ( vlc_object_t *p_this )
static int DemuxControl( demux_t *p_demux, int i_query, va_list args )
{
(void)p_demux; (void)i_query; (void)args;
- return VLC_EGENERIC;
+ switch( i_query )
+ {
+ case DEMUX_GET_PTS_DELAY:
+ {
+ int64_t *pi_pts_delay = va_arg( args, int64_t * );
+ *pi_pts_delay = DEFAULT_PTS_DELAY;
+ return VLC_SUCCESS;
+ }
+ default:
+ return VLC_EGENERIC;
+ }
}
More information about the vlc-devel
mailing list