diff options
Diffstat (limited to 'gst/smpte/gstsmpte.c')
-rw-r--r-- | gst/smpte/gstsmpte.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/smpte/gstsmpte.c b/gst/smpte/gstsmpte.c index 294d809ea..33d428427 100644 --- a/gst/smpte/gstsmpte.c +++ b/gst/smpte/gstsmpte.c @@ -559,8 +559,10 @@ input_formats_do_not_match: GST_ELEMENT_ERROR (smpte, CORE, NEGOTIATION, (NULL), ("input formats don't match: %" GST_PTR_FORMAT " vs. %" GST_PTR_FORMAT, caps1, caps2)); - gst_caps_unref (caps1); - gst_caps_unref (caps2); + if (caps1) + gst_caps_unref (caps1); + if (caps2) + gst_caps_unref (caps2); return GST_FLOW_ERROR; } } |