Commit fc3f7c4a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ogg: provide test-and-clear-flags control

parent 0a8a30e8
......@@ -957,13 +957,20 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
Ogg_ResetStreamsHelper( p_sys );
es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME,
VLC_TS_0 + i64 );
p_demux->info.i_update |= INPUT_UPDATE_SEEKPOINT;
p_sys->updates |= INPUT_UPDATE_SEEKPOINT;
p_sys->cur_seekpoint = i_seekpoint;
return VLC_SUCCESS;
}
else
return VLC_EGENERIC;
}
case DEMUX_TEST_AND_CLEAR_FLAGS:
{
unsigned *restrict flags = va_arg( args, unsigned * );
*flags &= p_sys->updates;
p_sys->updates = ~*flags;
return VLC_SUCCESS;
}
case DEMUX_GET_TITLE:
*va_arg( args, int * ) = 0;
return VLC_SUCCESS;
......@@ -2527,7 +2534,7 @@ static void Ogg_ExtractComments( demux_t *p_demux, es_format_t *p_fmt,
if( p_ogg->i_seekpoints > 1 )
{
p_demux->info.i_update |= INPUT_UPDATE_TITLE_LIST;
p_ogg->updates |= INPUT_UPDATE_TITLE_LIST;
}
}
......@@ -2610,7 +2617,7 @@ static void Ogg_ExtractMeta( demux_t *p_demux, es_format_t *p_fmt, const uint8_t
break;
}
if( p_ogg->p_meta )
p_demux->info.i_update |= INPUT_UPDATE_META;
p_ogg->updates |= INPUT_UPDATE_META;
}
static bool Ogg_ReadTheoraHeader( logical_stream_t *p_stream,
......
......@@ -214,6 +214,7 @@ struct demux_sys_t
int cur_seekpoint;
int i_seekpoints;
seekpoint_t **pp_seekpoints;
unsigned updates;
/* skeleton */
struct
......
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