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
2c17f860
Commit
2c17f860
authored
Mar 07, 2011
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vod_rtsp: fix raw transport without x-playNow header
There have been reports about this. Untested
parent
2cdc5c75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
modules/misc/rtsp.c
modules/misc/rtsp.c
+6
-4
No files found.
modules/misc/rtsp.c
View file @
2c17f860
...
...
@@ -113,6 +113,7 @@ typedef struct
char
*
psz_session
;
bool
b_playing
;
/* is it in "play" state */
int
i_port_raw
;
int
i_es
;
rtsp_client_es_t
**
es
;
...
...
@@ -951,7 +952,6 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
const
char
*
psz_session
=
NULL
;
const
char
*
psz_cseq
=
NULL
;
rtsp_client_t
*
p_rtsp
;
int
i_port
=
0
;
int
i_cseq
=
0
;
if
(
answer
==
NULL
||
query
==
NULL
)
return
VLC_SUCCESS
;
...
...
@@ -982,8 +982,8 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
{
rtsp_client_t
*
p_rtsp
=
NULL
;
char
ip
[
NI_MAXNUMERICHOST
];
i_port
=
atoi
(
strstr
(
psz_transport
,
"client_port="
)
+
strlen
(
"client_port="
)
);
i
nt
i
_port
=
atoi
(
strstr
(
psz_transport
,
"client_port="
)
+
strlen
(
"client_port="
)
);
if
(
strstr
(
psz_transport
,
"MP2T/H2221/UDP"
)
||
strstr
(
psz_transport
,
"RAW/RAW/UDP"
)
)
...
...
@@ -1047,6 +1047,8 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
if
(
p_media
->
b_raw
)
{
p_rtsp
->
i_port_raw
=
i_port
;
if
(
strstr
(
psz_transport
,
"MP2T/H2221/UDP"
)
)
{
httpd_MsgAdd
(
answer
,
"Transport"
,
...
...
@@ -1165,7 +1167,7 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
{
if
(
asprintf
(
&
psz_output
,
"std{access=udp,dst=%s:%i,mux=%s}"
,
ip
,
i_port
,
p_media
->
psz_mux
)
<
0
)
ip
,
p_rtsp
->
i_port_raw
,
p_media
->
psz_mux
)
<
0
)
return
VLC_ENOMEM
;
}
else
...
...
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