From 7e0ea232d0bb04d31b991ceac9ad5f016d0cdea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 23 Jun 2010 20:29:14 +0200 Subject: [PATCH] videobox: Fix negotiation for I420/YV12 We don't support conversion into *all* YUV formats for them, only into I420/YV12/AYUV. Fixes bug #622501. --- gst/videobox/gstvideobox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c index 35c8746295..6b4be86270 100644 --- a/gst/videobox/gstvideobox.c +++ b/gst/videobox/gstvideobox.c @@ -2921,8 +2921,10 @@ gst_video_box_transform_caps (GstBaseTransform * trans, gst_structure_set_value (s2, "depth", &list); gst_structure_set_value (s2, "bpp", &list); g_value_unset (&list); + gst_caps_append_structure (to, s2); + } else { + gst_structure_free (s2); } - gst_caps_append_structure (to, s2); } } else if (g_str_equal (name, "video/x-raw-rgb")) { gint bpp;