summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@hotmail.com>2019-12-03 00:52:45 +0800
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2019-12-11 19:44:24 +0000
commitf4fc37ccc5d4762b15971983fb2920bc78a9a0eb (patch)
tree38464cf31ae251e95106b1dfa76cf3815b801d70
parent9d8467dc60c84b94866e3bb67146662c7689eb69 (diff)
libs: decoder: Modify decode src's template raw formats
We do not need to maintain a standalone list of decoder's output template for raw formats and that is easy to make mistake(for example, the AYVU is wrong in that list, should be VUYA). Just use GST_VAAPI_FORMATS_ALL to replace the raw formats list for src template.
-rw-r--r--gst/vaapi/gstvaapidecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c
index a677d379..f4798f28 100644
--- a/gst/vaapi/gstvaapidecode.c
+++ b/gst/vaapi/gstvaapidecode.c
@@ -82,7 +82,7 @@ static const char gst_vaapidecode_src_caps_str[] =
#if (USE_GLX || USE_EGL)
GST_VAAPI_MAKE_GLTEXUPLOAD_CAPS ";"
#endif
- GST_VIDEO_CAPS_MAKE("{ NV12, I420, YV12, YUY2, UYVY, Y210, P010_10LE, AYUV, Y410, Y444 }") ";"
+ GST_VIDEO_CAPS_MAKE(GST_VAAPI_FORMATS_ALL) ";"
GST_VAAPI_MAKE_DMABUF_CAPS;
static GstStaticPadTemplate gst_vaapidecode_src_factory =