mxfdemux: Don't try parsing empty metadata items

This commit is contained in:
Sebastian Dröge 2016-11-25 15:53:36 +02:00
parent 329fe3eea4
commit 9ff1ac59f3

View file

@ -1304,6 +1304,9 @@ gst_mxf_demux_handle_metadata (GstMXFDemux * demux, const MXFUL * key,
return GST_FLOW_OK;
}
if (gst_buffer_get_size (buffer) == 0)
return GST_FLOW_OK;
gst_buffer_map (buffer, &map, GST_MAP_READ);
metadata =
mxf_metadata_new (type, &demux->current_partition->primer, demux->offset,