[vlc-commits] podcast: accept "application/xml" mime type

Thomas Guillem git at videolan.org
Fri Nov 3 17:11:05 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Nov  3 17:10:31 2017 +0100| [bdaabab4263c412cb799aefb3f7505f07049ef5b] | committer: Thomas Guillem

podcast: accept "application/xml" mime type

Check for the "rss" node from the Open function in that case.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bdaabab4263c412cb799aefb3f7505f07049ef5b
---

 modules/demux/playlist/podcast.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/playlist/podcast.c b/modules/demux/playlist/podcast.c
index 8c52f7e08d..7165fdd94a 100644
--- a/modules/demux/playlist/podcast.c
+++ b/modules/demux/playlist/podcast.c
@@ -49,7 +49,8 @@ int Import_podcast( vlc_object_t *p_this )
     stream_t *p_demux = (stream_t *)p_this;
 
     CHECK_FILE(p_demux);
-    if( stream_IsMimeType( p_demux->p_source, "text/xml" ) )
+    if( stream_IsMimeType( p_demux->p_source, "text/xml" )
+     || stream_IsMimeType( p_demux->p_source, "application/xml" ) )
     {
         /* XML: check if the root node is "rss". Use a specific peeked
          * probestream in order to not modify the source state while probing.



More information about the vlc-commits mailing list