projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e30f4a2
)
gstgsmenc: Unref caps object after usage
author
Sebastian Rasmussen
<sebras@hotmail.com>
Sat, 9 Aug 2014 12:27:34 +0000
(14:27 +0200)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sun, 10 Aug 2014 10:26:51 +0000
(11:26 +0100)
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);