]> git.sesse.net Git - vlc/commitdiff
control/media_instance.c: Fix libvlc_media_instance_new_from_input_thread() now that...
authorPierre d'Herbemont <pdherbemont@free.fr>
Wed, 19 Mar 2008 01:05:06 +0000 (02:05 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Wed, 19 Mar 2008 01:05:25 +0000 (02:05 +0100)
src/control/media_instance.c

index c11d733d4744f55a2a895706840c975e7d60c11d..3150c6c63d383a08e5681aac28fbe7b62a4f894a 100644 (file)
@@ -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;
 }