From: Pierre d'Herbemont Date: Wed, 19 Mar 2008 01:05:06 +0000 (+0100) Subject: control/media_instance.c: Fix libvlc_media_instance_new_from_input_thread() now that... X-Git-Tag: 0.9.0-test0~2000 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=af3a9f1bda52929ead2943edda814bdd8a6d2538;p=vlc control/media_instance.c: Fix libvlc_media_instance_new_from_input_thread() now that input refcounting is fixed. --- diff --git a/src/control/media_instance.c b/src/control/media_instance.c index c11d733d47..3150c6c63d 100644 --- a/src/control/media_instance.c +++ b/src/control/media_instance.c @@ -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; }