mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
oss4: fix caps leaks
This commit is contained in:
parent
b0608128b1
commit
f799fb2c90
2 changed files with 2 additions and 2 deletions
|
@ -392,7 +392,7 @@ gst_oss4_sink_getcaps (GstBaseSink * bsink)
|
|||
oss = GST_OSS4_SINK (bsink);
|
||||
|
||||
if (oss->fd == -1) {
|
||||
caps = gst_caps_copy (gst_oss4_audio_get_template_caps ());
|
||||
caps = gst_oss4_audio_get_template_caps ();
|
||||
} else if (oss->probed_caps) {
|
||||
caps = gst_caps_copy (oss->probed_caps);
|
||||
} else {
|
||||
|
|
|
@ -274,7 +274,7 @@ gst_oss4_source_getcaps (GstBaseSrc * bsrc)
|
|||
oss = GST_OSS4_SOURCE (bsrc);
|
||||
|
||||
if (oss->fd == -1) {
|
||||
caps = gst_caps_copy (gst_oss4_audio_get_template_caps ());
|
||||
caps = gst_oss4_audio_get_template_caps ();
|
||||
} else if (oss->probed_caps) {
|
||||
caps = gst_caps_copy (oss->probed_caps);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue