From 62c7ce69c9d83c7d5b1264bf39268cb3962685ef Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 13 Oct 2003 16:59:44 +0000 Subject: Woah, I'm f***ing annoyed that someonme never tests his changes and figures out that every freakin' format is identif... Original commit message from CVS: Woah, I'm f***ing annoyed that someonme never tests his changes and figures out that every freakin' format is identified as text/plain --- gst/festival/gstfestival.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gst/festival') diff --git a/gst/festival/gstfestival.c b/gst/festival/gstfestival.c index 31484364..a0f3b8f6 100644 --- a/gst/festival/gstfestival.c +++ b/gst/festival/gstfestival.c @@ -212,7 +212,7 @@ text_type_find (GstByteStream *bs, gpointer private) for (i = 0; i < TEXT_SIZE; i++) { if (!isprint (data[i]) && data[i] != '\n') { - break; + goto out; } } @@ -221,6 +221,7 @@ text_type_find (GstByteStream *bs, gpointer private) "text/plain", NULL); } +out: if (buf != NULL) { gst_buffer_unref (buf); -- cgit v1.2.1