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

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