summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@hotmail.com>2019-12-11 14:11:13 +0800
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2019-12-11 16:39:23 +0000
commit9d8467dc60c84b94866e3bb67146662c7689eb69 (patch)
treec97ae1935da231981e0002616c2f2d2370e09efd
parent506b6c53c5fb5aa4e90c828bee7a0bd4c292f79e (diff)
libs: postproc: Modify src/sink template raw formats
We need to provide more precise template caps for postproc's src and sink pads. The GST_VIDEO_FORMATS_ALL make all video formats available which are really superfluous.
-rw-r--r--gst/vaapi/gstvaapipostproc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c
index 0c899d5b..82c6b5fc 100644
--- a/gst/vaapi/gstvaapipostproc.c
+++ b/gst/vaapi/gstvaapipostproc.c
@@ -61,7 +61,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_debug_vaapipostproc);
static const char gst_vaapipostproc_sink_caps_str[] =
GST_VAAPI_MAKE_SURFACE_CAPS ", "
GST_CAPS_INTERLACED_MODES "; "
- GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) ", "
+ GST_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
GST_CAPS_INTERLACED_MODES;
/* *INDENT-ON* */
@@ -72,7 +72,7 @@ static const char gst_vaapipostproc_src_caps_str[] =
#if (USE_GLX || USE_EGL)
GST_VAAPI_MAKE_GLTEXUPLOAD_CAPS "; "
#endif
- GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) ", "
+ GST_VIDEO_CAPS_MAKE (GST_VAAPI_FORMATS_ALL) ", "
GST_CAPS_INTERLACED_MODES "; "
GST_VAAPI_MAKE_DMABUF_CAPS;
/* *INDENT-ON* */