[vlc-devel] [PATCH] Fix segfault on preparser

Francois Cartegnie fcvlcdev at free.fr
Thu Apr 15 19:33:53 CEST 2010


---
 src/playlist/preparser.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/playlist/preparser.c b/src/playlist/preparser.c
index 9dbc15d..62b9502 100644
--- a/src/playlist/preparser.c
+++ b/src/playlist/preparser.c
@@ -175,8 +175,16 @@ static void Art( playlist_preparser_t *p_preparser, input_item_t *p_item )
         }
         else
         {
-            msg_Dbg( p_playlist, "no fetch required for %s (art currently %s)",
-                     psz_name, psz_arturl );
+            if ( psz_arturl && psz_name )
+            {
+                msg_Dbg( p_playlist, "no fetch required for %s (art currently %s)",
+                        psz_name, psz_arturl );
+            }
+            else
+            {
+	        /* We shouldn't get there */
+                msg_Err( p_playlist, "no valid meta combination found" );
+            }
         }
     }
     vlc_mutex_unlock( &p_item->lock );
-- 
1.6.4.4




More information about the vlc-devel mailing list