flacparse: add actual invalid block type to warning

For someone that read the spec is clear the only *invalid*
data block type is 127. For the rest, its useful information.

Additionally. values 7-126 are currently reserved by the
spec so the situation might change in the future.
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2015-12-31 14:21:40 -08:00
parent c43f84abf3
commit 2c14f2fff1

View file

@ -1562,7 +1562,7 @@ gst_flac_parse_parse_frame (GstBaseParse * parse, GstBaseParseFrame * frame,
guint type = (map.data[0] & 0x7F);
if (type == 127) {
GST_WARNING_OBJECT (flacparse, "Invalid metadata block type");
GST_WARNING_OBJECT (flacparse, "Invalid metadata block type 127");
res = GST_BASE_PARSE_FLOW_DROPPED;
goto cleanup;
}