mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
msdkdec: Do not use video memory on Windows
Like msdkenc, do not use video memory by default on Windows.
This commit is contained in:
parent
d4112d3d7b
commit
eb3a117548
1 changed files with 8 additions and 0 deletions
|
@ -668,7 +668,15 @@ gst_msdkdec_start (GstVideoDecoder * decoder)
|
||||||
if (gst_msdk_context_prepare (GST_ELEMENT_CAST (thiz), &thiz->context)) {
|
if (gst_msdk_context_prepare (GST_ELEMENT_CAST (thiz), &thiz->context)) {
|
||||||
GST_INFO_OBJECT (thiz, "Found context %" GST_PTR_FORMAT " from neighbour",
|
GST_INFO_OBJECT (thiz, "Found context %" GST_PTR_FORMAT " from neighbour",
|
||||||
thiz->context);
|
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;
|
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) {
|
if (gst_msdk_context_get_job_type (thiz->context) & GST_MSDK_JOB_DECODER) {
|
||||||
GstMsdkContext *parent_context, *msdk_context;
|
GstMsdkContext *parent_context, *msdk_context;
|
||||||
|
|
Loading…
Reference in a new issue