diff options
author | Chris Clayton <chris2553@googlemail.com> | 2015-06-10 15:32:44 +0100 |
---|---|---|
committer | Luis de Bethencourt <luis.bg@samsung.com> | 2015-06-10 15:33:21 +0100 |
commit | 0f80355ba555240c36e708034ff71e7bdce30a5d (patch) | |
tree | 55ff01792f4bf339b84bb7f572bdcc676033dc92 /gst | |
parent | 3d5e7b0b953cf93a269dd31904ae61e286228c02 (diff) |
xingmux: fix compiler warnings
https://bugzilla.gnome.org/show_bug.cgi?id=750596
Diffstat (limited to 'gst')
-rw-r--r-- | gst/xingmux/gstxingmux.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/xingmux/gstxingmux.c b/gst/xingmux/gstxingmux.c index 26c6196180..0572060633 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); |