This website works better with JavaScript.
Home
Explore
Help
Sign In
RuhNetConsulting
/
rtpengine
mirror of
https://github.com/sipwise/rtpengine
Watch
1
Star
1
Fork
0
Code
Issues
0
Projects
0
Releases
822
Wiki
Activity
Browse Source
fix race condition after media player shutdown
fixes
#764
Change-Id: I6e729170b95c4320e5b500e9e3bb11cb2a788b40
changes/68/29568/1
Richard Fuchs
7 years ago
parent
c262956b6d
commit
77e31f1fb1
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
daemon/media_player.c
+ 3
- 0
daemon/media_player.c
View File
@ -279,6 +279,9 @@ found:
/
/
appropriate
lock
must
be
held
static
void
media_player_read_packet
(
struct
media_player
*
mp
)
{
if
(
!
mp
-
>
fmtctx
)
return
;
int
ret
=
av_read_frame
(
mp
-
>
fmtctx
,
&
mp
-
>
pkt
)
;
if
(
ret
<
0
)
{
if
(
ret
=
=
AVERROR_EOF
)
{
Write
Preview
Loading…
Cancel
Save