Commit d2265a34 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

media_instance: Use input_CreateThread() to have a stop that is synchronous.

parent 23efea7f
...@@ -565,11 +565,9 @@ void libvlc_media_instance_play( libvlc_media_instance_t *p_mi, ...@@ -565,11 +565,9 @@ void libvlc_media_instance_play( libvlc_media_instance_t *p_mi,
return; return;
} }
int i_input_id = input_Read( p_mi->p_libvlc_instance->p_libvlc_int, p_mi->p_input_thread = input_CreateThread( p_mi->p_libvlc_instance->p_libvlc_int,
p_mi->p_md->p_input_item, VLC_FALSE ); p_mi->p_md->p_input_item );
/* Released in input_release */
p_mi->p_input_thread = (input_thread_t*)vlc_object_get( i_input_id );
if( !p_mi->p_input_thread ) if( !p_mi->p_input_thread )
{ {
......
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