Commit 80e58d03 authored by Laurent Aimar's avatar Laurent Aimar

Fixed dummy input Control function.

DEMUX_GET_PTS_DELAY must not fail for an access_demux.
parent 790f188a
......@@ -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;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment