From ee2e07d50d9913e80f02fae52b62a6b401862e48 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Thu, 9 Feb 2012 22:10:07 +0100 Subject: [PATCH] ac3parse: prevent a few direct exits without cleanup --- gst/audioparsers/gstac3parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/audioparsers/gstac3parse.c b/gst/audioparsers/gstac3parse.c index 6251e83..9b1a365 100644 --- a/gst/audioparsers/gstac3parse.c +++ b/gst/audioparsers/gstac3parse.c @@ -547,7 +547,7 @@ gst_ac3_parse_check_valid_frame (GstBaseParse * parse, /* We need the first substream to be the one with id 0 */ GST_LOG_OBJECT (ac3parse, "Skipping till we find sid 0"); *skipsize = off + 2; - return FALSE; + goto cleanup; } *framesize = 0; @@ -567,7 +567,7 @@ gst_ac3_parse_check_valid_frame (GstBaseParse * parse, if (!gst_ac3_parse_frame_header (ac3parse, buf, *framesize, &frmsiz, NULL, NULL, NULL, &sid, &eac)) { *skipsize = off + 2; - return FALSE; + goto cleanup; } } while (sid); } -- 2.7.4