@@ -54,8 +54,7 @@ char *get_path(const char *location)
54
54
* access_New:
55
55
*****************************************************************************/
56
56
access_t * access_New ( vlc_object_t * p_obj , input_thread_t * p_parent_input ,
57
- const char * psz_access , const char * psz_demux ,
58
- const char * psz_location )
57
+ const char * psz_access , const char * psz_location )
59
58
{
60
59
access_t * p_access = vlc_custom_create ( p_obj , sizeof (* p_access ),
61
60
"access" );
@@ -70,9 +69,7 @@ access_t *access_New( vlc_object_t *p_obj, input_thread_t *p_parent_input,
70
69
p_access -> psz_access = strdup ( psz_access );
71
70
p_access -> psz_location = strdup ( psz_location );
72
71
p_access -> psz_filepath = get_path ( psz_location );
73
- p_access -> psz_demux = strdup ( psz_demux );
74
- if ( p_access -> psz_access == NULL || p_access -> psz_location == NULL
75
- || p_access -> psz_demux == NULL )
72
+ if ( p_access -> psz_access == NULL || p_access -> psz_location == NULL )
76
73
goto error ;
77
74
78
75
msg_Dbg ( p_obj , "creating access '%s' location='%s', path='%s'" ,
@@ -100,7 +97,6 @@ access_t *access_New( vlc_object_t *p_obj, input_thread_t *p_parent_input,
100
97
free ( p_access -> psz_access );
101
98
free ( p_access -> psz_location );
102
99
free ( p_access -> psz_filepath );
103
- free ( p_access -> psz_demux );
104
100
vlc_object_release ( p_access );
105
101
return NULL ;
106
102
}
@@ -115,7 +111,7 @@ access_t *vlc_access_NewMRL(vlc_object_t *parent, const char *mrl)
115
111
input_SplitMRL (& access , & demux , & location , & anchor , buf );
116
112
117
113
/* Both demux and anchor are ignored, since they are of no use here. */
118
- access_t * obj = access_New (parent , NULL , access , "" , location );
114
+ access_t * obj = access_New (parent , NULL , access , location );
119
115
120
116
free (buf );
121
117
return obj ;
@@ -128,7 +124,6 @@ void vlc_access_Delete(access_t *access)
128
124
free (access -> psz_access );
129
125
free (access -> psz_location );
130
126
free (access -> psz_filepath );
131
- free (access -> psz_demux );
132
127
vlc_object_release (access );
133
128
}
134
129
0 commit comments