From: Arnaud Vrac Date: Thu, 13 Dec 2012 10:47:57 +0000 (+0100) Subject: mpeg4videoparse: export number of sprite warping points in caps X-Git-Tag: 1.19.3~507^2~14400 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d15c8a7a59e11ef3c83fcc9363f074b7882997f;p=platform%2Fupstream%2Fgstreamer.git mpeg4videoparse: export number of sprite warping points in caps This allows filtering out videos for hardware decoders that do not support GMC at all or only support a limited number of sprite warping points (usually 1). --- diff --git a/gst/videoparsers/gstmpeg4videoparse.c b/gst/videoparsers/gstmpeg4videoparse.c index 92bfd29..ca38a37 100644 --- a/gst/videoparsers/gstmpeg4videoparse.c +++ b/gst/videoparsers/gstmpeg4videoparse.c @@ -621,6 +621,10 @@ gst_mpeg4vparse_update_src_caps (GstMpeg4VParse * mp4vparse) mp4vparse->vol.par_height, NULL); } + if (mp4vparse->vol.sprite_enable != GST_MPEG4_SPRITE_UNUSED) + gst_caps_set_simple (caps, "sprite-warping-points", G_TYPE_INT, + mp4vparse->vol.no_of_sprite_warping_points, NULL); + gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (mp4vparse), caps); gst_caps_unref (caps);