diff options
author | Kamil Debski <k.debski@samsung.com> | 2013-01-11 09:29:34 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-06 06:41:44 -0500 |
commit | eb36209297b7aadbd3144c74cb79d35704c3086e (patch) | |
tree | fcbffa4607c162ca25c3a9d3a38f60aa588d3f50 /drivers/media | |
parent | 8cd5d42ac6d75143ab4bf44a15f76245a7f6c884 (diff) |
[media] s5p-mfc: end-of-stream handling in encoder bug fix
In some circumstances after issuing the V4L2_ENC_CMD_STOP the application
could freeze. This patch prevents this behavior.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c index f92f6ddd739f..2356fd52a169 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | |||
@@ -1534,6 +1534,8 @@ int vidioc_encoder_cmd(struct file *file, void *priv, | |||
1534 | if (list_empty(&ctx->src_queue)) { | 1534 | if (list_empty(&ctx->src_queue)) { |
1535 | mfc_debug(2, "EOS: empty src queue, entering finishing state"); | 1535 | mfc_debug(2, "EOS: empty src queue, entering finishing state"); |
1536 | ctx->state = MFCINST_FINISHING; | 1536 | ctx->state = MFCINST_FINISHING; |
1537 | if (s5p_mfc_ctx_ready(ctx)) | ||
1538 | set_work_bit_irqsave(ctx); | ||
1537 | spin_unlock_irqrestore(&dev->irqlock, flags); | 1539 | spin_unlock_irqrestore(&dev->irqlock, flags); |
1538 | s5p_mfc_hw_call(dev->mfc_ops, try_run, dev); | 1540 | s5p_mfc_hw_call(dev->mfc_ops, try_run, dev); |
1539 | } else { | 1541 | } else { |