Browse Source

fix race condition after media player shutdown

fixes #764

Change-Id: I6e729170b95c4320e5b500e9e3bb11cb2a788b40
changes/68/29568/1
Richard Fuchs 7 years ago
parent
commit
77e31f1fb1
1 changed files with 3 additions and 0 deletions
  1. +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) {


Loading…
Cancel
Save