opusenc: plug ref leak of template caps
the pad template caps is already a new ref. No need to copy.
This commit is contained in:
parent
06a4e80be9
commit
4c883e4ad2
@ -734,9 +734,7 @@ gst_opus_enc_sink_getcaps (GstAudioEncoder * benc, GstCaps * filter)
|
|||||||
peercaps = gst_pad_peer_query_caps (GST_AUDIO_ENCODER_SRC_PAD (benc), NULL);
|
peercaps = gst_pad_peer_query_caps (GST_AUDIO_ENCODER_SRC_PAD (benc), NULL);
|
||||||
if (!peercaps) {
|
if (!peercaps) {
|
||||||
GST_DEBUG_OBJECT (benc, "No peercaps, returning template sink caps");
|
GST_DEBUG_OBJECT (benc, "No peercaps, returning template sink caps");
|
||||||
return
|
return gst_pad_get_pad_template_caps (GST_AUDIO_ENCODER_SINK_PAD (benc));
|
||||||
gst_caps_copy (gst_pad_get_pad_template_caps
|
|
||||||
(GST_AUDIO_ENCODER_SINK_PAD (benc)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tcaps = gst_pad_get_pad_template_caps (GST_AUDIO_ENCODER_SRC_PAD (benc));
|
tcaps = gst_pad_get_pad_template_caps (GST_AUDIO_ENCODER_SRC_PAD (benc));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user