]> git.sesse.net Git - vlc/commitdiff
text: Remove forbidden, and subject to race, playlist input access.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 12 Jul 2008 19:44:49 +0000 (21:44 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 12 Jul 2008 20:27:06 +0000 (22:27 +0200)
src/text/strings.c

index ec8bebe2ca597817067bf62801c12139eb5f6ae8..5d1395782375435cf10a18dedb84537c235b7578 100644 (file)
@@ -664,12 +664,11 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string )
     int d = 0;
 
     playlist_t *p_playlist = pl_Yield( p_object );
-    input_thread_t *p_input = p_playlist->p_input;
+    input_thread_t *p_input = playlist_CurrentInput( p_playlist );
     input_item_t *p_item = NULL;
     pl_Release( p_object );
     if( p_input )
     {
-        vlc_object_yield( p_input );
         p_item = input_GetItem(p_input);
     }