mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
pinospay: ref payloader
Ref the payloader to make sure it does not disappear when releasing the fds.
This commit is contained in:
parent
ae5d26e049
commit
d68d41b5b0
1 changed files with 2 additions and 1 deletions
|
|
@ -338,6 +338,7 @@ release_fds (GstPinosPay *pay, GstBuffer *buffer)
|
||||||
gst_buffer_unref (outbuf);
|
gst_buffer_unref (outbuf);
|
||||||
|
|
||||||
gst_pad_push_event (pay->sinkpad, ev);
|
gst_pad_push_event (pay->sinkpad, ev);
|
||||||
|
g_object_unref (pay);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
|
|
@ -378,7 +379,7 @@ gst_pinos_pay_chain_pinos (GstPinosPay *pay, GstBuffer * buffer)
|
||||||
gst_mini_object_set_qdata (GST_MINI_OBJECT_CAST (buffer),
|
gst_mini_object_set_qdata (GST_MINI_OBJECT_CAST (buffer),
|
||||||
fdids_quark, fdids, NULL);
|
fdids_quark, fdids, NULL);
|
||||||
gst_mini_object_weak_ref (GST_MINI_OBJECT_CAST (buffer),
|
gst_mini_object_weak_ref (GST_MINI_OBJECT_CAST (buffer),
|
||||||
(GstMiniObjectNotify) release_fds, pay);
|
(GstMiniObjectNotify) release_fds, g_object_ref (pay));
|
||||||
}
|
}
|
||||||
|
|
||||||
return gst_pad_push (pay->srcpad, buffer);
|
return gst_pad_push (pay->srcpad, buffer);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue