summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
Diffstat (limited to 'gst')
-rw-r--r--gst/festival/gstfestival.c3
1 files changed, 2 insertions, 1 deletions
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);