Commit 9717a696 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Added an extension check to m3u plugins for .ram files.

These files can contain a single line with a rtsp:// link which VLC sometimes is able to handle.

for MPEG-4 unicasted RealMedia streams.
parent f2e79969
...@@ -94,6 +94,7 @@ static int Activate( vlc_object_t * p_this ) ...@@ -94,6 +94,7 @@ static int Activate( vlc_object_t * p_this )
psz_ext = strrchr ( p_input->psz_name, '.' ); psz_ext = strrchr ( p_input->psz_name, '.' );
if( ( psz_ext && !strcasecmp( psz_ext, ".m3u") ) || if( ( psz_ext && !strcasecmp( psz_ext, ".m3u") ) ||
( psz_ext && !strcasecmp( psz_ext, ".ram") ) || /* a .ram file can contain a single rtsp link */
( p_input->psz_demux && !strcmp(p_input->psz_demux, "m3u") ) ) ( p_input->psz_demux && !strcmp(p_input->psz_demux, "m3u") ) )
{ {
i_type = TYPE_M3U; i_type = TYPE_M3U;
......
...@@ -68,6 +68,7 @@ int Import_M3U( vlc_object_t *p_this ) ...@@ -68,6 +68,7 @@ int Import_M3U( vlc_object_t *p_this )
; ;
} }
else if( ( psz_ext && !strcasecmp( psz_ext, ".m3u") ) || else if( ( psz_ext && !strcasecmp( psz_ext, ".m3u") ) ||
( psz_ext && !strcasecmp( psz_ext, ".ram") ) || /* a .ram file can contain a single rtsp link */
( p_demux->psz_demux && !strcmp(p_demux->psz_demux, "m3u") ) ) ( p_demux->psz_demux && !strcmp(p_demux->psz_demux, "m3u") ) )
{ {
; ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment