diff options
author | Seungha Yang <seungha.yang@navercorp.com> | 2019-08-26 14:54:13 +0900 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2019-09-10 13:29:11 +0000 |
commit | 54c5ebbd535043a1b486073474be55434c1e5e43 (patch) | |
tree | db2b3ce8ee63be2235b3e3e9874c296422cb3767 /sys/msdk/gstmsdkenc.c | |
parent | eb3a1175485b71b3ed5b4c56cdecc0ad87dccd18 (diff) | |
download | gstreamer-plugins-bad-54c5ebbd535043a1b486073474be55434c1e5e43.tar.gz |
msdk: Remove all DMABuf caps features on Windows
Add new macro for sink/src pad template to ensure no DMABuf caps
features are exposed on Windows. Some DMABuf caps features
were not handled by the commit 9ec62418c31cab4072bf173f279234e36eeec596
Diffstat (limited to 'sys/msdk/gstmsdkenc.c')
-rw-r--r-- | sys/msdk/gstmsdkenc.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/msdk/gstmsdkenc.c b/sys/msdk/gstmsdkenc.c index bf552ba18..08b462eb6 100644 --- a/sys/msdk/gstmsdkenc.c +++ b/sys/msdk/gstmsdkenc.c @@ -76,21 +76,11 @@ static void gst_msdkenc_close_encoder (GstMsdkEnc * thiz); GST_DEBUG_CATEGORY_EXTERN (gst_msdkenc_debug); #define GST_CAT_DEFAULT gst_msdkenc_debug -#ifndef _WIN32 -#define DMABUF_CAPS_STR \ - GST_VIDEO_CAPS_MAKE_WITH_FEATURES (GST_CAPS_FEATURE_MEMORY_DMABUF, "{ NV12 }") -#else -#define DMABUF_CAPS_STR "" -#endif - static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("video/x-raw, " - "format = (string) { NV12, I420, YV12, YUY2, UYVY, BGRA }, " - "framerate = (fraction) [0, MAX], " - "width = (int) [ 16, MAX ], height = (int) [ 16, MAX ]," - "interlace-mode = (string) progressive" ";" DMABUF_CAPS_STR) + GST_STATIC_CAPS (GST_MSDK_CAPS_STR + ("{ NV12, I420, YV12, YUY2, UYVY, BGRA }", "NV12")) ); #define PROP_HARDWARE_DEFAULT TRUE |