Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
a19ec16e
Commit
a19ec16e
authored
Feb 02, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http: fixed segfault with ICY server, fixed redirection.
parent
a79a94f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/access/http.c
modules/access/http.c
+4
-2
No files found.
modules/access/http.c
View file @
a19ec16e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* http.c: HTTP input module
* http.c: HTTP input module
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001-2004 VideoLAN
* Copyright (C) 2001-2004 VideoLAN
* $Id: http.c,v 1.5
7 2004/01/25 17:31:22 gbazin
Exp $
* $Id: http.c,v 1.5
8 2004/02/02 11:14:32 fenrir
Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Christophe Massiot <massiot@via.ecp.fr>
* Christophe Massiot <massiot@via.ecp.fr>
...
@@ -294,7 +294,7 @@ static int Open ( vlc_object_t *p_this )
...
@@ -294,7 +294,7 @@ static int Open ( vlc_object_t *p_this )
if
(
!
strcmp
(
p_sys
->
psz_protocol
,
"ICY"
)
&&
if
(
!
strcmp
(
p_sys
->
psz_protocol
,
"ICY"
)
&&
(
!
p_input
->
psz_demux
||
!*
p_input
->
psz_demux
)
)
(
!
p_input
->
psz_demux
||
!*
p_input
->
psz_demux
)
)
{
{
if
(
!
strcasecmp
(
p_sys
->
psz_mime
,
"video/nsv"
)
)
if
(
p_sys
->
psz_mime
&&
!
strcasecmp
(
p_sys
->
psz_mime
,
"video/nsv"
)
)
{
{
p_input
->
psz_demux
=
strdup
(
"nsv"
);
p_input
->
psz_demux
=
strdup
(
"nsv"
);
}
}
...
@@ -604,6 +604,7 @@ static int Connect( input_thread_t *p_input, vlc_bool_t *pb_seekable,
...
@@ -604,6 +604,7 @@ static int Connect( input_thread_t *p_input, vlc_bool_t *pb_seekable,
goto
error
;
goto
error
;
}
}
*
p
++
=
'\0'
;
*
p
++
=
'\0'
;
while
(
*
p
==
' '
)
p
++
;
if
(
!
strcasecmp
(
psz
,
"Content-Length"
)
)
if
(
!
strcasecmp
(
psz
,
"Content-Length"
)
)
{
{
...
@@ -619,6 +620,7 @@ static int Connect( input_thread_t *p_input, vlc_bool_t *pb_seekable,
...
@@ -619,6 +620,7 @@ static int Connect( input_thread_t *p_input, vlc_bool_t *pb_seekable,
{
{
if
(
p_sys
->
psz_mime
)
free
(
p_sys
->
psz_mime
);
if
(
p_sys
->
psz_mime
)
free
(
p_sys
->
psz_mime
);
p_sys
->
psz_mime
=
strdup
(
p
);
p_sys
->
psz_mime
=
strdup
(
p
);
msg_Dbg
(
p_input
,
"Content-Type: %s"
,
p_sys
->
psz_mime
);
}
}
free
(
psz
);
free
(
psz
);
...
...
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