]> git.sesse.net Git - vlc/commitdiff
podcast: be more tolerant with faulty feeds, so just ignore invalid items instead...
authorFelix Paul Kühne <fkuehne@videolan.org>
Mon, 15 Jul 2013 09:43:41 +0000 (11:43 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Mon, 15 Jul 2013 09:44:26 +0000 (11:44 +0200)
modules/demux/playlist/podcast.c

index 022b87bff601f3495f195c744bedc04df4803d58..6af712b6357933fa9574b0160f5d081164488b4a 100644 (file)
@@ -230,8 +230,24 @@ static int Demux( demux_t *p_demux )
                 {
                     if( psz_item_mrl == NULL )
                     {
-                        msg_Err( p_demux, "invalid XML (no enclosure markup)" );
-                        goto error;
+                        if (psz_item_name)
+                            msg_Warn( p_demux, "invalid XML item, skipping %s",
+                                      psz_item_name );
+                        else
+                            msg_Warn( p_demux, "invalid XML item, skipped" );
+                        FREENULL( psz_item_name );
+                        FREENULL( psz_item_size );
+                        FREENULL( psz_item_type );
+                        FREENULL( psz_item_date );
+                        FREENULL( psz_item_author );
+                        FREENULL( psz_item_category );
+                        FREENULL( psz_item_duration );
+                        FREENULL( psz_item_keywords );
+                        FREENULL( psz_item_subtitle );
+                        FREENULL( psz_item_summary );
+                        FREENULL( psz_art_url );
+                        FREENULL( psz_elname );
+                        continue;
                     }
 
                     p_input = input_item_New( psz_item_mrl, psz_item_name );