playlist: avoid a segfault when the fetcher has been unloaded
authorRafaël Carré <funman@videolan.org>
Thu, 18 Oct 2007 19:59:48 +0000 (19:59 +0000)
committerRafaël Carré <funman@videolan.org>
Thu, 18 Oct 2007 19:59:48 +0000 (19:59 +0000)
src/playlist/control.c

index f094a70..6b70f2d 100644 (file)
@@ -475,7 +475,8 @@ int playlist_PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
     }
     free( psz_uri );
 
-    if( p_playlist->p_fetcher->i_art_policy == ALBUM_ART_WHEN_PLAYED )
+    if( p_playlist->p_fetcher &&
+            p_playlist->p_fetcher->i_art_policy == ALBUM_ART_WHEN_PLAYED )
     {
         vlc_bool_t b_has_art;