diff options
author | Joshua M. Doe <oss@nvl.army.mil> | 2018-10-12 08:49:06 -0400 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-05-02 09:39:43 +0100 |
commit | d372a5144d751d785af08786b1aadc2990583af4 (patch) | |
tree | ebd7ea0b6d8060bf797c6fe2fa6666b3c85873fc | |
parent | 6d1267054615d3c706c2f330cb17666884cef17e (diff) | |
download | gstreamer-plugins-bad-d372a5144d751d785af08786b1aadc2990583af4.tar.gz |
dshowvideosrc: fix template caps to reflect actual supported caps
-rw-r--r-- | sys/dshowsrcwrapper/gstdshowvideosrc.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/dshowsrcwrapper/gstdshowvideosrc.cpp b/sys/dshowsrcwrapper/gstdshowvideosrc.cpp index 9b478db5d..8c1879769 100644 --- a/sys/dshowsrcwrapper/gstdshowvideosrc.cpp +++ b/sys/dshowsrcwrapper/gstdshowvideosrc.cpp @@ -34,14 +34,9 @@ GST_DEBUG_CATEGORY_STATIC (dshowvideosrc_debug); static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("video/x-raw, format=(string) { " - GST_VIDEO_NE(BGR) ", " - GST_VIDEO_NE(I420) ", " - GST_VIDEO_NE(YUY2) ", " - GST_VIDEO_NE(UYVY) " }, " - "width = " GST_VIDEO_SIZE_RANGE ", " - "height = " GST_VIDEO_SIZE_RANGE ", " - "framerate = " GST_VIDEO_FPS_RANGE "; " + GST_STATIC_CAPS ( + GST_VIDEO_CAPS_MAKE ("{ I420, BGR, YUY2, UYVY, BGRx, BGR16, BGR15, " + "GRAY8 }") "; " "video/x-dv, " "format= (string) DVSD, " |