summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-08-05 09:19:41 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-05 09:19:43 +0200
commit4d2e9a3b8def3eb2fd1813a3d4d9536da5b2583c (patch)
treea5d96e9528fbc5fc0b479f0412999aea745376db
parent5efb9850fd5492d7624e6fe889cc2c55af86ec6d (diff)
downloadgst-plugins-fsl-vpu-4d2e9a3b8def3eb2fd1813a3d4d9536da5b2583c.tar.gz
gst-plugins-fsl-vpu-4d2e9a3b8def3eb2fd1813a3d4d9536da5b2583c.tar.xz
vpu decoder: fix wrong bailing out of loop
We are only allowed to bail out of the handled loop when all data is written, not earlier. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rwxr-xr-xsrc/mfw_gst_vpu_decoder.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mfw_gst_vpu_decoder.c b/src/mfw_gst_vpu_decoder.c
index abc068c..6571bfb 100755
--- a/src/mfw_gst_vpu_decoder.c
+++ b/src/mfw_gst_vpu_decoder.c
@@ -633,10 +633,8 @@ mfw_gst_vpudec_chain_stream_mode(GstPad * pad, GstBuffer *buffer)
handled = 1;
}
- if (pollfd.revents & POLLIN) {
+ if (pollfd.revents & POLLIN)
while (!vpu_dec_loop(vpu_dec));
- handled = 1;
- }
}
done:
gst_buffer_unref(buffer);