xingmux: fix compiler warnings

https://bugzilla.gnome.org/show_bug.cgi?id=750596
This commit is contained in:
Chris Clayton 2015-06-10 15:32:44 +01:00 committed by Luis de Bethencourt
parent 3d5e7b0b95
commit 0f80355ba5

View file

@ -275,7 +275,10 @@ generate_xing_header (GstXingMux * xing)
header &= 0xffff0fff; header &= 0xffff0fff;
header |= bitrate << 12; 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); xing_offset = get_xing_offset (header);
} while (size < (4 + xing_offset + 4 + 4 + 4 + 4 + 100) && bitrate < 0xe); } while (size < (4 + xing_offset + 4 + 4 + 4 + 4 + 100) && bitrate < 0xe);