diff options
Diffstat (limited to 'ext/musepack/gstmusepackdec.c')
-rw-r--r-- | ext/musepack/gstmusepackdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/musepack/gstmusepackdec.c b/ext/musepack/gstmusepackdec.c index 656360a6..c699c265 100644 --- a/ext/musepack/gstmusepackdec.c +++ b/ext/musepack/gstmusepackdec.c @@ -400,6 +400,7 @@ gst_musepack_stream_init (GstMusepackDec * musepackdec) "rate", G_TYPE_INT, i.sample_freq, NULL); if (!gst_pad_set_explicit_caps (musepackdec->srcpad, caps)) { GST_ELEMENT_ERROR (musepackdec, CORE, NEGOTIATION, (NULL), (NULL)); + gst_caps_free (caps); return FALSE; } @@ -409,6 +410,7 @@ gst_musepack_stream_init (GstMusepackDec * musepackdec) musepackdec->len = mpc_streaminfo_get_length_samples (&i); musepackdec->init = TRUE; + gst_caps_free (caps); return TRUE; } |