Commit 06127932 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* sgimb.c: set the kasenna option correctly

  fix the playlist autodelete
  
parent b06d6287
......@@ -242,7 +242,6 @@ static int Open ( vlc_object_t *p_this )
psz_url = (char*)malloc( strlen( p_demux->psz_path ) + 8 );
sprintf( psz_url, "rtsp://%s", p_demux->psz_path );
/* Add kasenna option */
psz_options = p_sys->rtsp->sendOptionsCmd( psz_url );
if( psz_options )
delete [] psz_options;
......
......@@ -279,7 +279,7 @@ static int ParseLine ( demux_t *p_demux, char *psz_line )
else if( !strncasecmp( psz_bol, "sgiFormatName=", sizeof("sgiFormatName=") - 1 ) )
{
psz_bol += sizeof("sgiFormatName=") - 1;
if( !strcasestr( psz_bol, "MPEG-4") ) /*not mpeg4 */
if( strcasestr( psz_bol, "MPEG-4") == NULL ) /*not mpeg4 found in string */
p_sys->b_rtsp_kasenna = VLC_TRUE;
}
else if( !strncasecmp( psz_bol, "sgiMulticastAddress=", sizeof("sgiMulticastAddress=") - 1 ) )
......@@ -346,8 +346,8 @@ static int Demux ( demux_t *p_demux )
return -1;
}
p_playlist->pp_items[p_playlist->i_index]->b_autodeletion = VLC_TRUE;
i_position = p_playlist->i_index + 1;
p_playlist->status.p_item->i_flags = PLAYLIST_DEL_FLAG;
i_position = -1; /* FIXME p_playlist->i_index + 1; */
while( ( psz_line = stream_ReadLine( p_demux->s ) ) )
{
......
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