Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
e7993ece
Commit
e7993ece
authored
Aug 17, 2012
by
Jordi Ortiz
Committed by
Martin Storsjö
Aug 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtsp.c: use ffurl_get_multi_file_handle() instead of ff_rtp_get_rtcp_file_handle()
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
d6b9da11
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
rtsp.c
libavformat/rtsp.c
+16
-4
No files found.
libavformat/rtsp.c
View file @
e7993ece
...
...
@@ -1695,6 +1695,7 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
int
n
,
i
,
ret
,
tcp_fd
,
timeout_cnt
=
0
;
int
max_p
=
0
;
struct
pollfd
*
p
=
rt
->
p
;
int
*
fds
=
NULL
,
fdsnum
,
fdsidx
;
for
(;;)
{
if
(
ff_check_interrupt
(
&
s
->
interrupt_callback
))
...
...
@@ -1712,11 +1713,22 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
for
(
i
=
0
;
i
<
rt
->
nb_rtsp_streams
;
i
++
)
{
rtsp_st
=
rt
->
rtsp_streams
[
i
];
if
(
rtsp_st
->
rtp_handle
)
{
p
[
max_p
].
fd
=
ffurl_get_file_handle
(
rtsp_st
->
rtp_handle
);
p
[
max_p
++
].
events
=
POLLIN
;
p
[
max_p
].
fd
=
ff_rtp_get_rtcp_file_handle
(
rtsp_st
->
rtp_handle
);
if
(
ret
=
ffurl_get_multi_file_handle
(
rtsp_st
->
rtp_handle
,
&
fds
,
&
fdsnum
))
{
av_log
(
s
,
AV_LOG_ERROR
,
"Unable to recover rtp ports
\n
"
);
return
ret
;
}
if
(
fdsnum
!=
2
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Number of fds %d not supported
\n
"
,
fdsnum
);
return
AVERROR_INVALIDDATA
;
}
for
(
fdsidx
=
0
;
fdsidx
<
fdsnum
;
fdsidx
++
)
{
p
[
max_p
].
fd
=
fds
[
fdsidx
];
p
[
max_p
++
].
events
=
POLLIN
;
}
av_free
(
fds
);
}
}
n
=
poll
(
p
,
max_p
,
POLL_TIMEOUT_MS
);
if
(
n
>
0
)
{
...
...
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