summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Clayton <chris2553@googlemail.com>2015-06-10 15:32:44 +0100
committerLuis de Bethencourt <luis.bg@samsung.com>2015-06-10 15:33:21 +0100
commit0f80355ba555240c36e708034ff71e7bdce30a5d (patch)
tree55ff01792f4bf339b84bb7f572bdcc676033dc92
parent3d5e7b0b953cf93a269dd31904ae61e286228c02 (diff)
xingmux: fix compiler warnings
https://bugzilla.gnome.org/show_bug.cgi?id=750596
-rw-r--r--gst/xingmux/gstxingmux.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/xingmux/gstxingmux.c b/gst/xingmux/gstxingmux.c
index 26c61961..05720606 100644
--- a/gst/xingmux/gstxingmux.c
+++ b/gst/xingmux/gstxingmux.c
@@ -275,7 +275,10 @@ generate_xing_header (GstXingMux * xing)
header &= 0xffff0fff;
header |= bitrate << 12;
- parse_header (header, &size, &spf, &rate);
+ if (!parse_header (header, &size, &spf, &rate)) {
+ GST_ERROR ("Failed to parse header!");
+ return NULL;
+ }
xing_offset = get_xing_offset (header);
} while (size < (4 + xing_offset + 4 + 4 + 4 + 4 + 100) && bitrate < 0xe);