fix race condition after media player shutdown

fixes #764

Change-Id: I6e729170b95c4320e5b500e9e3bb11cb2a788b40
changes/90/29990/1
Richard Fuchs 7 years ago
parent 60991bcd8e
commit a92193eec8

@ -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