Commit 3affe2e6 authored by François Cartegnie's avatar François Cartegnie 🤞

input: update title const ref on mainloop title update

refs #18727
parent fa26e3d6
......@@ -2269,7 +2269,8 @@ static void UpdateGenericFromDemux( input_thread_t *p_input )
static void UpdateTitleListfromDemux( input_thread_t *p_input )
{
input_source_t *in = input_priv(p_input)->master;
input_thread_private_t *priv = input_priv(p_input);
input_source_t *in = priv->master;
/* Delete the preexisting titles */
if( in->i_title > 0 )
......@@ -2277,6 +2278,8 @@ static void UpdateTitleListfromDemux( input_thread_t *p_input )
for( int i = 0; i < in->i_title; i++ )
vlc_input_title_Delete( in->title[i] );
TAB_CLEAN( in->i_title, in->title );
priv->i_title = 0;
priv->title = NULL;
in->b_title_demux = false;
}
......
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