]> git.sesse.net Git - vlc/blobdiff - modules/demux/playlist/gvp.c
BeOS / gcc 2.x fixes, patch by Cian Duffy
[vlc] / modules / demux / playlist / gvp.c
index 8064cdea12751a45253bf611fac1d15bfc7358a8..4a0b3496bd7959e9b86cc5c31e04100eb3258c01 100644 (file)
@@ -100,13 +100,6 @@ static int Demux( demux_t *p_demux )
 {
     demux_sys_t *p_sys = p_demux->p_sys;
 
-    INIT_PLAYLIST_STUFF;
-
-    p_sys->p_playlist = p_playlist;
-    p_sys->p_current = p_current;
-    p_sys->i_parent_id = i_parent_id;
-    p_sys->p_item_in_category = p_item_in_category;
-
     char *psz_line;
     char *psz_attrvalue;
 
@@ -117,6 +110,13 @@ static int Demux( demux_t *p_demux )
     char *psz_title = NULL;
     char *psz_description = NULL;
 
+    INIT_PLAYLIST_STUFF;
+
+    p_sys->p_playlist = p_playlist;
+    p_sys->p_current = p_current;
+    p_sys->i_parent_id = i_parent_id;
+    p_sys->p_item_in_category = p_item_in_category;
+
     while( ( psz_line = stream_ReadLine( p_demux->s ) ) )
     {
         if( *psz_line == '#' )