summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2018-12-12 15:24:18 +0800
committerTim-Philipp Müller <tim@centricular.com>2019-05-02 12:05:28 +0100
commit73ff734ecacbeb80b5123eff4b7aaf4c5a7a2bf8 (patch)
tree444011d95f0f449309cec163ac240b747b9a97af
parent2ecba3e7a905e1cdded117ed840374df483e5aae (diff)
downloadgstreamer-plugins-bad-73ff734ecacbeb80b5123eff4b7aaf4c5a7a2bf8.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
-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 5130c383b..7d7b5d5e9 100644
--- a/sys/msdk/gstmsdkenc.c
+++ b/sys/msdk/gstmsdkenc.c
@@ -661,9 +661,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 =