summaryrefslogtreecommitdiffstats
path: root/video/decode/dec_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/decode/dec_video.c')
-rw-r--r--video/decode/dec_video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/decode/dec_video.c b/video/decode/dec_video.c
index 243c38a0a8..6eaed8a85a 100644
--- a/video/decode/dec_video.c
+++ b/video/decode/dec_video.c
@@ -504,6 +504,8 @@ void video_work(struct dec_video *d_video)
read_frame(d_video);
if (!d_video->current_mpi) {
feed_packet(d_video);
+ if (d_video->current_state == DATA_WAIT)
+ return;
read_frame(d_video); // retry, to avoid redundant iterations
}
}