projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4e6bbe
)
mxfdemux: Don't try parsing empty metadata items
author
Sebastian Dröge
<sebastian@centricular.com>
Fri, 25 Nov 2016 13:53:36 +0000
(15:53 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Fri, 25 Nov 2016 18:04:03 +0000
(20:04 +0200)
gst/mxf/mxfdemux.c
patch
|
blob
|
history
diff --git
a/gst/mxf/mxfdemux.c
b/gst/mxf/mxfdemux.c
index f8ebee76dce1e1767eb8d808f9bfafa1bc43e19e..c808dc85e0fc27c04a39f55b7ca42b5d702f8472 100644
(file)
--- a/
gst/mxf/mxfdemux.c
+++ b/
gst/mxf/mxfdemux.c
@@
-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,