Woah, I'm f***ing annoyed that someonme never tests his changes and figures out that...
authorBenjamin Otte <otte@gnome.org>
Mon, 13 Oct 2003 16:59:44 +0000 (16:59 +0000)
committerBenjamin Otte <otte@gnome.org>
Mon, 13 Oct 2003 16:59:44 +0000 (16:59 +0000)
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

index 3148436..a0f3b8f 100644 (file)
@@ -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);