From b6cd7c41e4fce35c500c6788b835560a3a0c7921 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Sat, 15 Mar 2014 15:17:43 +0100 Subject: [PATCH] y4mdec: check for VIDEO meta instead of CROP meta This element only need stride support, but checks for CROP_META, which is a bit too much, even though this works as CROP imply having VIDEO meta. https://bugzilla.gnome.org/show_bug.cgi?id=726255 --- gst/y4m/gsty4mdec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/y4m/gsty4mdec.c b/gst/y4m/gsty4mdec.c index 4351226..803ff27 100644 --- a/gst/y4m/gsty4mdec.c +++ b/gst/y4m/gsty4mdec.c @@ -544,8 +544,7 @@ gst_y4m_dec_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) if (gst_pad_peer_query (y4mdec->srcpad, query)) { y4mdec->video_meta = - gst_query_find_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE, - NULL); + gst_query_find_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL); /* We only need a pool if we need to do stride conversion for downstream */ if (!y4mdec->video_meta && memcmp (&y4mdec->info, &y4mdec->out_info, -- 2.7.4