From 2763a345fc9076d2a6b66f264078520f1d98c6ba Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Tue, 23 Nov 2004 12:39:27 +0000 Subject: [PATCH] gst/videorate/gstvideorate.c: Handle all video formats. Fixes #159186. Original commit message from CVS: * gst/videorate/gstvideorate.c: Handle all video formats. Fixes #159186. --- ChangeLog | 5 +++++ gst/videorate/gstvideorate.c | 11 ++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6892c4df68..c4589081f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-11-23 Thomas Vander Stichele + + * gst/videorate/gstvideorate.c: + Handle all video formats. Fixes #159186. + 2004-11-16 Jan Schmidt * gst/synaesthesia/gstsynaesthesia.c: (gst_synaesthesia_class_init), (gst_synaesthesia_init), diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index 829b3430de..6aabfeb407 100644 --- a/gst/videorate/gstvideorate.c +++ b/gst/videorate/gstvideorate.c @@ -22,7 +22,6 @@ #endif #include -#include GST_DEBUG_CATEGORY (videorate_debug); #define GST_CAT_DEFAULT videorate_debug @@ -94,19 +93,17 @@ enum }; static GstStaticPadTemplate gst_videorate_src_template = -GST_STATIC_PAD_TEMPLATE ("src", + GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("{ YUY2, I420, YV12, YUYV, UYVY }") - ) + GST_STATIC_CAPS ("video/x-raw-yuv; video/x-raw-rgb") ); static GstStaticPadTemplate gst_videorate_sink_template = -GST_STATIC_PAD_TEMPLATE ("sink", + GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("{ YUY2, I420, YV12, YUYV, UYVY }") - ) + GST_STATIC_CAPS ("video/x-raw-yuv; video/x-raw-rgb") ); static void gst_videorate_base_init (gpointer g_class);