From 37839ee2b3055eaabb35030b88593dcddc81c403 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 30 Jul 2009 15:08:35 +0200 Subject: [PATCH] typefindfunctions: Use static caps again for MPEG4 typefinding --- gst/typefind/gsttypefindfunctions.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index ad1edf7..bbcd214 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -1676,6 +1676,10 @@ mpeg_find_next_header (GstTypeFind * tf, DataScanCtx * c, /*** video/mpeg MPEG-4 elementary video stream ***/ +static GstStaticCaps mpeg4_video_caps = GST_STATIC_CAPS ("video/mpeg, " + "systemstream = (boolean) false, mpegversion = 4"); +#define MPEG4_VIDEO_CAPS gst_static_caps_get(&mpeg4_video_caps) + /* * This typefind is based on the elementary video header defined in * http://xhelmboyx.tripod.com/formats/mpeg-layout.txt @@ -1791,9 +1795,7 @@ mpeg4_video_type_find (GstTypeFind * tf, gpointer unused) else if (seen_vos && seen_vol) probability = GST_TYPE_FIND_POSSIBLE - 20; - gst_type_find_suggest_simple (tf, probability, "video/mpeg", - "systemstream", G_TYPE_BOOLEAN, FALSE, - "mpegversion", G_TYPE_INT, 4, NULL); + gst_type_find_suggest (tf, probability, MPEG4_VIDEO_CAPS); } } -- 2.7.4