summaryrefslogtreecommitdiff
path: root/sys/msdk/gstmsdkenc.c
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2018-12-12 15:24:18 +0800
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-12-12 17:24:00 +0000
commit88586b4149038ddae066ff48394fb58c7365b995 (patch)
treebec1fcbb7c510fa5c90a6042271439d1fff9f2d8 /sys/msdk/gstmsdkenc.c
parent51dc388783ca5339e7e0e034a205854752e9fc80 (diff)
downloadgstreamer-plugins-bad-88586b4149038ddae066ff48394fb58c7365b995.tar.gz
msdk: change the wait time for encoder and vpp
In MSDK samples, the wait time for encoder, decoder and vpp is 300000. Let's set the wait time to the same value in msdk plugin
Diffstat (limited to 'sys/msdk/gstmsdkenc.c')
-rw-r--r--sys/msdk/gstmsdkenc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/msdk/gstmsdkenc.c b/sys/msdk/gstmsdkenc.c
index 6a0db481d..bc9d4d36e 100644
--- a/sys/msdk/gstmsdkenc.c
+++ b/sys/msdk/gstmsdkenc.c
@@ -685,9 +685,12 @@ gst_msdkenc_finish_frame (GstMsdkEnc * thiz, MsdkEncTask * task,
return GST_FLOW_ERROR;
}
- /* Wait for encoding operation to complete */
+ /* Wait for encoding operation to complete, the magic number 300000 below
+ * is used in MSDK samples
+ * #define MSDK_ENC_WAIT_INTERVAL 300000
+ */
MFXVideoCORE_SyncOperation (gst_msdk_context_get_session (thiz->context),
- task->sync_point, 10000);
+ task->sync_point, 300000);
if (!discard && task->output_bitstream.DataLength) {
GstBuffer *out_buf = NULL;
guint8 *data =