summaryrefslogtreecommitdiff
path: root/gst/xingmux/gstxingmux.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/xingmux/gstxingmux.c')
-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);