pipewiresrc: Fix caps leak

pwsrc->possible_caps wasn't un-reffed before re-assignment.
This commit is contained in:
Philippe Normand 2025-09-13 10:08:56 +01:00 committed by Wim Taymans
parent 4dccddd564
commit 96ac4ae10d

View file

@ -1162,7 +1162,7 @@ gst_pipewire_src_negotiate (GstBaseSrc * basesrc)
GST_DEBUG_OBJECT (basesrc, "connect capture with path %s, target-object %s",
pwsrc->stream->path, pwsrc->stream->target_object);
pwsrc->possible_caps = gst_caps_ref (possible_caps);
gst_caps_replace (&pwsrc->possible_caps, possible_caps);
pwsrc->negotiated = FALSE;
enum pw_stream_flags flags;