]> git.sesse.net Git - vlc/blobdiff - src/input/access.c
The msleep in stream.c is useless as access MUST wait themselves.
[vlc] / src / input / access.c
index 3052f92fc66d06eff9754bf04a31a842a69481be..48bd44eb2a94e1f749bc00999630723985671525 100644 (file)
@@ -25,7 +25,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 
 #include "input_internal.h"
 
@@ -36,7 +36,9 @@ static access_t *access_InternalNew( vlc_object_t *p_obj, const char *psz_access
                                       const char *psz_demux, const char *psz_path,
                                       access_t *p_source )
 {
-    access_t *p_access = vlc_object_create( p_obj, VLC_OBJECT_ACCESS );
+    static const char typename[] = "access";
+    access_t *p_access = vlc_custom_create( p_obj, sizeof (*p_access),
+                                            VLC_OBJECT_GENERIC, typename );
 
     if( p_access == NULL )
         return NULL;
@@ -46,7 +48,6 @@ static access_t *access_InternalNew( vlc_object_t *p_obj, const char *psz_access
     if( p_source )
     {
         msg_Dbg( p_obj, "creating access filter '%s'", psz_access );
-        p_access->psz_access = strdup( p_source->psz_access );
     }
     else
     {