Commit 961a704a authored by Sebastian Rasmussen's avatar Sebastian Rasmussen Committed by Tim-Philipp Müller

gstgsmenc: Unref caps object after usage

gst_audio_encoder_set_output_format() does not consume caps, so
unreference that object instead.

parent e30f4a28
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment