* AutoStart=True
* Start playing automatically
* DeliveryService=cds
- * Simulcasted (scheduled unicast) content. (Green dot in Kasenna web interface)
+ * Simulcasted (scheduled unicast) content. (Green dot in Kasenna web interface)
* sgiShowingName=A nice name that everyone likes
* A human readible descriptive title for this stream.
* sgiSid=2311
/*****************************************************************************
* Preamble
*****************************************************************************/
-#define _GNU_SOURCE
-#include <stdlib.h> /* malloc(), free() */
#include <vlc/vlc.h>
-#include <vlc/input.h>
+#include <vlc_demux.h>
#include "playlist.h"
/*****************************************************************************
p_demux->p_sys->i_sid = 0;
p_demux->p_sys->b_rtsp_kasenna = VLC_FALSE;
p_demux->p_sys->b_concert = VLC_FALSE;
-
+
return VLC_SUCCESS;
}
}
p_child = input_ItemNewWithType( (vlc_object_t *)p_playlist, p_sys->psz_uri,
p_sys->psz_name ? p_sys->psz_name : p_sys->psz_uri,
0, NULL, p_sys->i_duration, ITEM_TYPE_NET );
-
+
if( !p_child )
{
msg_Err( p_demux, "A valid playlistitem could not be created" );
return VLC_EGENERIC;
}
- input_ItemCopyOptions( p_current->p_input, p_child );
+ input_ItemCopyOptions( p_current_input, p_child );
if( p_sys->i_packet_size && p_sys->psz_mcast_ip )
{
char *psz_option;
free( psz_option );
}
- playlist_BothAddInput( p_playlist, p_child, p_item_in_category,
- PLAYLIST_APPEND, PLAYLIST_END );
+ input_ItemAddSubItem( p_current_input, p_child );
HANDLE_PLAY_AND_RELEASE
- return VLC_SUCCESS;
+ return -1; /* Needed for correct operation of go back */
}
static int Control( demux_t *p_demux, int i_query, va_list args )