access: merge access_Delete() and vlc_access_Delete()
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 22 Jul 2015 20:41:01 +0000 (23:41 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 22 Jul 2015 20:41:01 +0000 (23:41 +0300)
src/input/access.c
src/input/access.h
src/input/stream.c

index e21e282..a3174ca 100644 (file)
@@ -105,21 +105,6 @@ error:
     return NULL;
 }
 
-/*****************************************************************************
- * access_Delete:
- *****************************************************************************/
-void access_Delete( access_t *p_access )
-{
-    module_unneed( p_access, p_access->p_module );
-
-    free( p_access->psz_access );
-    free( p_access->psz_location );
-    free( p_access->psz_filepath );
-    free( p_access->psz_demux );
-
-    vlc_object_release( p_access );
-}
-
 access_t *vlc_access_NewMRL(vlc_object_t *parent, const char *mrl)
 {
     char *buf = strdup(mrl);
@@ -138,7 +123,13 @@ access_t *vlc_access_NewMRL(vlc_object_t *parent, const char *mrl)
 
 void vlc_access_Delete(access_t *access)
 {
-    access_Delete(access);
+    module_unneed(access, access->p_module);
+
+    free(access->psz_access);
+    free(access->psz_location);
+    free(access->psz_filepath);
+    free(access->psz_demux);
+    vlc_object_release(access);
 }
 
 /*****************************************************************************
index d16d27b..fe37716 100644 (file)
@@ -32,7 +32,6 @@ access_t *access_New( vlc_object_t *p_obj, input_thread_t *p_input,
                       const char *psz_access, const char *psz_demux,
                       const char *psz_path );
 #define access_New( a, b, c, d, e ) access_New(VLC_OBJECT(a), b, c, d, e )
-void access_Delete( access_t * );
 
 char *get_path(const char *location);
 
index db38a18..6fd1f8a 100644 (file)
@@ -385,7 +385,7 @@ error:
     }
     free( s->p_sys );
     stream_CommonDelete( s );
-    access_Delete( p_access );
+    vlc_access_Delete( p_access );
     return NULL;
 }
 
@@ -404,7 +404,7 @@ static void AStreamDestroy( stream_t *s )
     free( p_sys->p_peek );
 
     stream_CommonDelete( s );
-    access_Delete( p_sys->p_access );
+    vlc_access_Delete( p_sys->p_access );
     free( p_sys );
 }