diff --git a/ext/ffmpeg/gstffmpegdeinterlace.c b/ext/ffmpeg/gstffmpegdeinterlace.c index 0ea9d5cdba..40f6d750a5 100644 --- a/ext/ffmpeg/gstffmpegdeinterlace.c +++ b/ext/ffmpeg/gstffmpegdeinterlace.c @@ -71,13 +71,13 @@ GType gst_ffmpegdeinterlace_get_type (void); static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("I420")) + GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("I420")) ); static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("I420")) + GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("I420")) ); G_DEFINE_TYPE (GstFFMpegDeinterlace, gst_ffmpegdeinterlace, GST_TYPE_ELEMENT); diff --git a/ext/libpostproc/gstpostproc.c b/ext/libpostproc/gstpostproc.c index b4d724ed93..e2656fbfa8 100644 --- a/ext/libpostproc/gstpostproc.c +++ b/ext/libpostproc/gstpostproc.c @@ -178,14 +178,14 @@ static GstStaticPadTemplate gst_post_proc_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("{ IYUV, I420, YV12, Y42B, Y41B }")) + GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("{ IYUV, I420, YV12, Y42B, Y41B }")) ); static GstStaticPadTemplate gst_post_proc_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("{ IYUV, I420, YV12, Y42B, Y41B }")) + GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("{ IYUV, I420, YV12, Y42B, Y41B }")) ); GST_DEBUG_CATEGORY (postproc_debug); diff --git a/ext/libswscale/gstffmpegscale.c b/ext/libswscale/gstffmpegscale.c index 5ec6d39cce..8fbc1d8406 100644 --- a/ext/libswscale/gstffmpegscale.c +++ b/ext/libswscale/gstffmpegscale.c @@ -85,16 +85,10 @@ GST_DEBUG_CATEGORY (ffmpegscale_debug); /* libswscale supported formats depend on endianness */ #if G_BYTE_ORDER == G_BIG_ENDIAN #define VIDEO_CAPS \ - GST_VIDEO_CAPS_RGB "; " GST_VIDEO_CAPS_BGR "; " \ - GST_VIDEO_CAPS_xRGB "; " GST_VIDEO_CAPS_xBGR "; " \ - GST_VIDEO_CAPS_ARGB "; " GST_VIDEO_CAPS_ABGR "; " \ - GST_VIDEO_CAPS_YUV ("{ I420, YUY2, UYVY, Y41B, Y42B }") + GST_VIDEO_CAPS_MAKE ("{ RGB, BGR, xRGB, xBGR, ARGB, ABGR, I420, YUY2, UYVY, Y41B, Y42B }") #else #define VIDEO_CAPS \ - GST_VIDEO_CAPS_RGB "; " GST_VIDEO_CAPS_BGR "; " \ - GST_VIDEO_CAPS_RGBx "; " GST_VIDEO_CAPS_BGRx "; " \ - GST_VIDEO_CAPS_RGBA "; " GST_VIDEO_CAPS_BGRA "; " \ - GST_VIDEO_CAPS_YUV ("{ I420, YUY2, UYVY, Y41B, Y42B }") + GST_VIDEO_CAPS_MAKE ("{ RGB, BGR, RGBx, BGRx, RGBA, BGRA, I420, YUY2, UYVY, Y41B, Y42B }") #endif static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",