Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
9d4e30d4
Commit
9d4e30d4
authored
Dec 19, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http: remove write-only psz_pragma
parent
c95734c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
modules/access/http.c
modules/access/http.c
+1
-10
No files found.
modules/access/http.c
View file @
9d4e30d4
...
@@ -150,7 +150,6 @@ struct access_sys_t
...
@@ -150,7 +150,6 @@ struct access_sys_t
const
char
*
psz_protocol
;
const
char
*
psz_protocol
;
char
*
psz_mime
;
char
*
psz_mime
;
char
*
psz_pragma
;
char
*
psz_location
;
char
*
psz_location
;
bool
i_version
;
bool
i_version
;
bool
b_mms
;
bool
b_mms
;
...
@@ -225,7 +224,6 @@ static int Open( vlc_object_t *p_this )
...
@@ -225,7 +224,6 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_version
=
1
;
p_sys
->
i_version
=
1
;
p_sys
->
b_seekable
=
true
;
p_sys
->
b_seekable
=
true
;
p_sys
->
psz_mime
=
NULL
;
p_sys
->
psz_mime
=
NULL
;
p_sys
->
psz_pragma
=
NULL
;
p_sys
->
b_mms
=
false
;
p_sys
->
b_mms
=
false
;
p_sys
->
b_icecast
=
false
;
p_sys
->
b_icecast
=
false
;
p_sys
->
psz_location
=
NULL
;
p_sys
->
psz_location
=
NULL
;
...
@@ -450,7 +448,6 @@ connect:
...
@@ -450,7 +448,6 @@ connect:
free
(
p_sys
->
psz_proxy_passbuf
);
free
(
p_sys
->
psz_proxy_passbuf
);
http_auth_Reset
(
&
p_sys
->
proxy_auth
);
http_auth_Reset
(
&
p_sys
->
proxy_auth
);
free
(
p_sys
->
psz_mime
);
free
(
p_sys
->
psz_mime
);
free
(
p_sys
->
psz_pragma
);
free
(
p_sys
->
psz_user_agent
);
free
(
p_sys
->
psz_user_agent
);
free
(
p_sys
->
psz_referrer
);
free
(
p_sys
->
psz_referrer
);
...
@@ -488,7 +485,6 @@ error:
...
@@ -488,7 +485,6 @@ error:
vlc_UrlClean
(
&
p_sys
->
proxy
);
vlc_UrlClean
(
&
p_sys
->
proxy
);
free
(
p_sys
->
psz_proxy_passbuf
);
free
(
p_sys
->
psz_proxy_passbuf
);
free
(
p_sys
->
psz_mime
);
free
(
p_sys
->
psz_mime
);
free
(
p_sys
->
psz_pragma
);
free
(
p_sys
->
psz_location
);
free
(
p_sys
->
psz_location
);
free
(
p_sys
->
psz_user_agent
);
free
(
p_sys
->
psz_user_agent
);
free
(
p_sys
->
psz_referrer
);
free
(
p_sys
->
psz_referrer
);
...
@@ -518,7 +514,6 @@ static void Close( vlc_object_t *p_this )
...
@@ -518,7 +514,6 @@ static void Close( vlc_object_t *p_this )
http_auth_Reset
(
&
p_sys
->
proxy_auth
);
http_auth_Reset
(
&
p_sys
->
proxy_auth
);
free
(
p_sys
->
psz_mime
);
free
(
p_sys
->
psz_mime
);
free
(
p_sys
->
psz_pragma
);
free
(
p_sys
->
psz_location
);
free
(
p_sys
->
psz_location
);
free
(
p_sys
->
psz_icy_name
);
free
(
p_sys
->
psz_icy_name
);
...
@@ -934,7 +929,6 @@ static int Connect( access_t *p_access, uint64_t i_tell )
...
@@ -934,7 +929,6 @@ static int Connect( access_t *p_access, uint64_t i_tell )
/* Clean info */
/* Clean info */
free
(
p_sys
->
psz_location
);
free
(
p_sys
->
psz_location
);
free
(
p_sys
->
psz_mime
);
free
(
p_sys
->
psz_mime
);
free
(
p_sys
->
psz_pragma
);
free
(
p_sys
->
psz_icy_genre
);
free
(
p_sys
->
psz_icy_genre
);
free
(
p_sys
->
psz_icy_name
);
free
(
p_sys
->
psz_icy_name
);
...
@@ -943,7 +937,6 @@ static int Connect( access_t *p_access, uint64_t i_tell )
...
@@ -943,7 +937,6 @@ static int Connect( access_t *p_access, uint64_t i_tell )
p_sys
->
psz_location
=
NULL
;
p_sys
->
psz_location
=
NULL
;
p_sys
->
psz_mime
=
NULL
;
p_sys
->
psz_mime
=
NULL
;
p_sys
->
psz_pragma
=
NULL
;
p_sys
->
b_mms
=
false
;
p_sys
->
b_mms
=
false
;
p_sys
->
b_chunked
=
false
;
p_sys
->
b_chunked
=
false
;
p_sys
->
i_chunk
=
0
;
p_sys
->
i_chunk
=
0
;
...
@@ -1300,9 +1293,7 @@ static int Request( access_t *p_access, uint64_t i_tell )
...
@@ -1300,9 +1293,7 @@ static int Request( access_t *p_access, uint64_t i_tell )
{
{
if
(
!
strcasecmp
(
psz
,
"Pragma: features"
)
)
if
(
!
strcasecmp
(
psz
,
"Pragma: features"
)
)
p_sys
->
b_mms
=
true
;
p_sys
->
b_mms
=
true
;
free
(
p_sys
->
psz_pragma
);
msg_Dbg
(
p_access
,
"Pragma: %s"
,
p
);
p_sys
->
psz_pragma
=
strdup
(
p
);
msg_Dbg
(
p_access
,
"Pragma: %s"
,
p_sys
->
psz_pragma
);
}
}
else
if
(
!
strcasecmp
(
psz
,
"Server"
)
)
else
if
(
!
strcasecmp
(
psz
,
"Server"
)
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment