diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2014-08-09 14:27:34 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-08-10 11:26:51 +0100 |
commit | 961a704a74ed0804f7bcdd8bbd787180aca467fa (patch) | |
tree | 719facbc6597a5fb9e2ea68a8182da3f299274be /ext/gsm | |
parent | e30f4a285180884f9df2d46c7f0573c7faddcc1a (diff) | |
download | gstreamer-plugins-bad-961a704a74ed0804f7bcdd8bbd787180aca467fa.tar.gz |
gstgsmenc: Unref caps object after usage
gst_audio_encoder_set_output_format() does not consume caps, so
unreference that object instead.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734544
Diffstat (limited to 'ext/gsm')
-rw-r--r-- | ext/gsm/gstgsmenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/gsm/gstgsmenc.c b/ext/gsm/gstgsmenc.c index 6dc3314c1..d9a0aee29 100644 --- a/ext/gsm/gstgsmenc.c +++ b/ext/gsm/gstgsmenc.c @@ -134,6 +134,7 @@ gst_gsmenc_set_format (GstAudioEncoder * benc, GstAudioInfo * info) srccaps = gst_static_pad_template_get_caps (&gsmenc_src_template); gst_audio_encoder_set_output_format (GST_AUDIO_ENCODER (benc), srccaps); + gst_caps_unref (srccaps); /* report needs to base class */ gst_audio_encoder_set_frame_samples_min (benc, 160); |