* access,demux: fixed parsing.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 30 May 2004 18:11:55 +0000 (18:11 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 30 May 2004 18:11:55 +0000 (18:11 +0000)
src/input/access.c
src/input/demux.c

index d1c1387..efa5ab3 100644 (file)
@@ -65,6 +65,7 @@ access_t *__access2_New( vlc_object_t *p_obj, char *psz_mrl )
 
     if( p_access == NULL )
     {
+        msg_Err( p_obj, "vlc_object_create( p_obj, VLC_OBJECT_ACCESS ) had failed" );
         free( psz_dup );
         return NULL;
     }
@@ -87,8 +88,8 @@ access_t *__access2_New( vlc_object_t *p_obj, char *psz_mrl )
         if( psz )
         {
             *psz++ = '\0';
-            p_access->psz_access = strdup( psz_dup );
         }
+        p_access->psz_access = strdup( psz_dup );
     }
     else
     {
index 3b10379..48700b9 100644 (file)
@@ -202,9 +202,9 @@ demux_t *__demux2_New( vlc_object_t *p_obj,
         if( psz )
         {
             *psz++ = '\0';
-            p_demux->psz_access = strdup( psz_dup );
             p_demux->psz_demux  = strdup( psz );
         }
+        p_demux->psz_access = strdup( psz_dup );
     }
     else
     {