mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 04:45:36 +00:00
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
This commit is contained in:
parent
e30f4a2851
commit
961a704a74
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue