From eb3a1175485b71b3ed5b4c56cdecc0ad87dccd18 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Wed, 4 Sep 2019 13:30:37 +0900 Subject: [PATCH] msdkdec: Do not use video memory on Windows Like msdkenc, do not use video memory by default on Windows. --- sys/msdk/gstmsdkdec.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/msdk/gstmsdkdec.c b/sys/msdk/gstmsdkdec.c index 12c504b757..c91a99ee60 100644 --- a/sys/msdk/gstmsdkdec.c +++ b/sys/msdk/gstmsdkdec.c @@ -668,7 +668,15 @@ gst_msdkdec_start (GstVideoDecoder * decoder) if (gst_msdk_context_prepare (GST_ELEMENT_CAST (thiz), &thiz->context)) { GST_INFO_OBJECT (thiz, "Found context %" GST_PTR_FORMAT " from neighbour", thiz->context); + + /* TODO: Currently d3d allocator is not implemented. + * So decoder uses system memory by default on Windows. + */ +#ifndef _WIN32 thiz->use_video_memory = TRUE; +#else + thiz->use_video_memory = FALSE; +#endif if (gst_msdk_context_get_job_type (thiz->context) & GST_MSDK_JOB_DECODER) { GstMsdkContext *parent_context, *msdk_context;