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:
531b022
)
gstgsmenc: Unref caps object after usage
author
Sebastian Rasmussen
<sebras@hotmail.com>
Sat, 9 Aug 2014 12:27:34 +0000
(14:27 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Mon, 11 Aug 2014 06:49:35 +0000
(08:49 +0200)
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
ext/gsm/gstgsmenc.c
patch
|
blob
|
history
diff --git
a/ext/gsm/gstgsmenc.c
b/ext/gsm/gstgsmenc.c
index
6dc3314
..
d9a0aee
100644
(file)
--- 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);