/*****************************************************************************
* m3u.c: a meta demux to parse pls, m3u, asx et b4s playlists
*****************************************************************************
- * Copyright (C) 2001-2004 VideoLAN
+ * Copyright (C) 2001-2004 the VideoLAN team
* $Id$
*
- * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
+ * Authors: Sigmund Augdal Helberg <dnumgis@videolan.org>
* Gildas Bazin <gbazin@videolan.org>
* Clément Stenac <zorglub@via.ecp.fr>
*
/* We double check for file != m3u as some asx are just m3u file */
if( i_type != TYPE_M3U )
{
- uint8_t *p_peek;
- int i_size = stream_Peek( p_demux->s, &p_peek, MAX_LINE );
+ char *p_peek;
+ int i_size = stream_Peek( p_demux->s, (uint8_t **)&p_peek, MAX_LINE );
i_size -= sizeof("[Reference]") - 1;
if( i_size > 0 )
{
input_item_t *p_current =
((input_thread_t*)p_demux->p_parent)->input.p_item;
- *pp_item = playlist_ItemGetByInput( p_playlist, p_current );
+ *pp_item = playlist_LockItemGetByInput( p_playlist, p_current );
if( !*pp_item )
msg_Dbg( p_playlist, "unable to find item in playlist");