mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-07 04:34:07 -05:00
gst: fix compilation on older GStreamer
These functions are since 1.28, which is a little too new.
This commit is contained in:
parent
efd1526423
commit
e6a5951a47
1 changed files with 6 additions and 2 deletions
|
|
@ -1604,7 +1604,8 @@ gst_pipewire_src_create (GstPushSrc * psrc, GstBuffer ** buffer)
|
|||
if (pwsrc->eos) {
|
||||
if (pwsrc->last_buffer == NULL)
|
||||
goto streaming_eos;
|
||||
buf = gst_buffer_steal (&pwsrc->last_buffer);
|
||||
buf = pwsrc->last_buffer;
|
||||
pwsrc->last_buffer = NULL;
|
||||
update_time = TRUE;
|
||||
GST_LOG_OBJECT (pwsrc, "EOS, send last buffer");
|
||||
break;
|
||||
|
|
@ -1619,8 +1620,11 @@ gst_pipewire_src_create (GstPushSrc * psrc, GstBuffer ** buffer)
|
|||
if (buf != NULL) {
|
||||
if (pwsrc->resend_last || pwsrc->keepalive_time > 0) {
|
||||
GstClock *clock;
|
||||
GstBuffer *old;
|
||||
|
||||
gst_buffer_take (&pwsrc->last_buffer, gst_buffer_copy (buf));
|
||||
old = pwsrc->last_buffer;
|
||||
pwsrc->last_buffer = gst_buffer_copy (buf);
|
||||
gst_buffer_unref (old);
|
||||
gst_buffer_add_parent_buffer_meta (pwsrc->last_buffer, buf);
|
||||
|
||||
clock = gst_element_get_clock (GST_ELEMENT_CAST (pwsrc));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue