summaryrefslogtreecommitdiffstats
path: root/gst/mxf/mxfdv-dif.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-03-22 15:51:37 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-03-22 15:51:37 +0100
commiteffb5786da04e28effadc0602ef1ec5465458801 (patch)
tree0c187c241f51bda6bcec5cccdba7df8330803c0c /gst/mxf/mxfdv-dif.c
parentddced37a8b83be290343502d4099d8f325da4e3f (diff)
downloadgst-plugins-bad-effb5786da04e28effadc0602ef1ec5465458801.tar.gz
gst-plugins-bad-effb5786da04e28effadc0602ef1ec5465458801.tar.bz2
gst-plugins-bad-effb5786da04e28effadc0602ef1ec5465458801.zip
mxfmux: Fix some memory leaks, improve debugging and handle errors better
Diffstat (limited to 'gst/mxf/mxfdv-dif.c')
-rw-r--r--gst/mxf/mxfdv-dif.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gst/mxf/mxfdv-dif.c b/gst/mxf/mxfdv-dif.c
index eb76be9d..508a69fe 100644
--- a/gst/mxf/mxfdv-dif.c
+++ b/gst/mxf/mxfdv-dif.c
@@ -179,8 +179,11 @@ mxf_dv_dif_get_descriptor (GstPadTemplate * tmpl, GstCaps * caps,
memcpy (&ret->parent.parent.essence_container, &dv_dif_essence_container_ul,
16);
- mxf_metadata_generic_picture_essence_descriptor_from_caps (&ret->parent,
- caps);
+ if (!mxf_metadata_generic_picture_essence_descriptor_from_caps (&ret->parent,
+ caps)) {
+ gst_mini_object_unref (GST_MINI_OBJECT_CAST (ret));
+ return NULL;
+ }
*handler = mxf_dv_dif_write_func;
return (MXFMetadataFileDescriptor *) ret;