mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
mxfdemux: Don't try parsing empty metadata items
This commit is contained in:
parent
329fe3eea4
commit
9ff1ac59f3
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue