From 52d2bae95065b2319fdacd869bb452f8c8f7fba9 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 26 Mar 2004 02:16:00 +0000 Subject: [PATCH] gst/typefind/gsttypefindfunctions.c: fix bug where typefinding would claim it's theora whenever less then 7 bytes of ... Original commit message from CVS: * gst/typefind/gsttypefindfunctions.c: (theora_type_find): fix bug where typefinding would claim it's theora whenever less then 7 bytes of data were available --- ChangeLog | 6 ++++++ gst/typefind/gsttypefindfunctions.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7328146822..f394518194 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-03-26 Benjamin Otte + + * gst/typefind/gsttypefindfunctions.c: (theora_type_find): + fix bug where typefinding would claim it's theora whenever less then + 7 bytes of data were available + 2004-03-25 Ronald Bultje * gst/law/alaw-decode.c: (alawdec_getcaps), (alawdec_link), diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 5af6a4e3d1..66756b4dd5 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -1145,8 +1145,9 @@ theora_type_find (GstTypeFind * tf, gpointer private) if (memcmp (&data[1], "theora", 6) != 0) return; /* FIXME: make this more reliable when specs are out */ + + gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, THEORA_CAPS); } - gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, THEORA_CAPS); } /*** audio/x-speex ***********************************************************/