opusenc: fix caps leak
This commit is contained in:
parent
3f47a43f2a
commit
2ca8f88ecc
@ -897,6 +897,7 @@ gst_opus_enc_handle_frame (GstAudioEncoder * benc, GstBuffer * buf)
|
||||
GST_DEBUG_OBJECT (enc, "here are the caps: %" GST_PTR_FORMAT, caps);
|
||||
|
||||
gst_pad_set_caps (GST_AUDIO_ENCODER_SRC_PAD (enc), caps);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
enc->header_sent = TRUE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user