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

control/media_instance.c: Fix libvlc_media_instance_new_from_input_thread()...

control/media_instance.c: Fix libvlc_media_instance_new_from_input_thread() now that input refcounting is fixed.
parent cf310033
......@@ -103,9 +103,6 @@ static void release_input_thread( libvlc_media_instance_t *p_mi )
}
else
{
/* XXX: hack the playlist doesn't retain the input thread,
* so we did it for the playlist (see _new_from_input_thread),
* revert that here. This will be deleted with the playlist API */
vlc_object_release( p_input_thread );
}
......@@ -410,10 +407,6 @@ libvlc_media_instance_t * libvlc_media_instance_new_from_input_thread(
/* will be released in media_instance_release() */
vlc_object_yield( p_input );
/* XXX: Hack as the playlist doesn't yield the input thread we retain
* the input for the playlist. (see corresponding hack in _release) */
vlc_object_yield( p_input );
return p_mi;
}
......
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