Commit d5c12fe6 authored by Laurent Aimar's avatar Laurent Aimar

Fixed CDG seeking while used as a slave input.

parent c0aeb6ae
......@@ -149,11 +149,14 @@ static void Close ( vlc_object_t * p_this )
*****************************************************************************/
static int Control( demux_t *p_demux, int i_query, va_list args )
{
switch( i_query )
{
default:
return demux_vaControlHelper( p_demux->s, 0, -1,
8*CDG_FRAME_SIZE*CDG_FRAME_RATE, CDG_FRAME_SIZE, i_query, args );
}
int i_ret = demux_vaControlHelper( p_demux->s, 0, -1,
8*CDG_FRAME_SIZE*CDG_FRAME_RATE, CDG_FRAME_SIZE,
i_query, args );
if( !i_ret && ( i_query == DEMUX_SET_POSITION || i_query == DEMUX_SET_TIME ) )
date_Set( &p_demux->p_sys->pts,
stream_Tell( p_demux->s ) / CDG_FRAME_SIZE *
INT64_C(1000000) / CDG_FRAME_RATE );
return i_ret;
}
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