Commit 6f9bcb4e authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Set a higher RTSP caching if we use Kasenna VoD

parent 81eb72f4
...@@ -233,7 +233,7 @@ static int ParseLine ( demux_t *p_demux, char *psz_line ) ...@@ -233,7 +233,7 @@ static int ParseLine ( demux_t *p_demux, char *psz_line )
else if( !strncasecmp( psz_bol, "sgiFormatName=", sizeof("sgiFormatName=") - 1 ) ) else if( !strncasecmp( psz_bol, "sgiFormatName=", sizeof("sgiFormatName=") - 1 ) )
{ {
psz_bol += sizeof("sgiFormatName=") - 1; psz_bol += sizeof("sgiFormatName=") - 1;
if( !strcasestr( psz_bol, "MPEG-4") ) if( !strcasestr( psz_bol, "MPEG-4") ) /*not mpeg4 */
p_sys->b_rtsp_kasenna = VLC_TRUE; p_sys->b_rtsp_kasenna = VLC_TRUE;
} }
else if( !strncasecmp( psz_bol, "sgiMulticastAddress=", sizeof("sgiMulticastAddress=") - 1 ) ) else if( !strncasecmp( psz_bol, "sgiMulticastAddress=", sizeof("sgiMulticastAddress=") - 1 ) )
...@@ -342,7 +342,14 @@ static int Demux ( demux_t *p_demux ) ...@@ -342,7 +342,14 @@ static int Demux ( demux_t *p_demux )
playlist_ItemAddOption( p_item, psz_option ); playlist_ItemAddOption( p_item, psz_option );
free( psz_option ); free( psz_option );
} }
if( p_sys->b_rtsp_kasenna ) if( !p_sys->psz_mcast_ip )
{
char *psz_option;
asprintf( &psz_option, "rtsp-caching=10000" )
playlist_ItemAddOption( p_item, psz_option )
free( psz_option );
}
if( !p_sys->psz_mcast_ip && p_sys->b_rtsp_kasenna )
{ {
char *psz_option; char *psz_option;
asprintf( &psz_option, "rtsp-kasenna" ); asprintf( &psz_option, "rtsp-kasenna" );
......
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