summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha.yang@navercorp.com>2019-09-04 13:30:37 +0900
committerNirbheek Chauhan <nirbheek@centricular.com>2020-01-20 10:51:53 +0530
commit3fbfb7909d957428374f30580e37c4ebd166a4fe (patch)
tree804115c33c8940b1033d3fa51e9ad2561bded5ae
parent2343fd60e43f5a78ca6e6fa1f40d57522a9bafce (diff)
msdkdec: Do not use video memory on Windows
Like msdkenc, do not use video memory by default on Windows.
-rw-r--r--sys/msdk/gstmsdkdec.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/msdk/gstmsdkdec.c b/sys/msdk/gstmsdkdec.c
index 684a992e5..e71361fe7 100644
--- a/sys/msdk/gstmsdkdec.c
+++ b/sys/msdk/gstmsdkdec.c
@@ -655,7 +655,14 @@ gst_msdkdec_context_prepare (GstMsdkDec * thiz)
return TRUE;
}
+ /* 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
GST_INFO_OBJECT (thiz, "Found context %" GST_PTR_FORMAT " from neighbour",
thiz->context);