mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-04 07:15:35 -04: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
86da3e1183
commit
8daf4ba6b6
1 changed files with 6 additions and 2 deletions
|
|
@ -1593,7 +1593,8 @@ gst_pipewire_src_create (GstPushSrc * psrc, GstBuffer ** buffer)
|
||||||
if (pwsrc->eos) {
|
if (pwsrc->eos) {
|
||||||
if (pwsrc->last_buffer == NULL)
|
if (pwsrc->last_buffer == NULL)
|
||||||
goto streaming_eos;
|
goto streaming_eos;
|
||||||
buf = gst_buffer_steal (&pwsrc->last_buffer);
|
buf = pwsrc->last_buffer;
|
||||||
|
pwsrc->last_buffer = NULL;
|
||||||
update_time = TRUE;
|
update_time = TRUE;
|
||||||
GST_LOG_OBJECT (pwsrc, "EOS, send last buffer");
|
GST_LOG_OBJECT (pwsrc, "EOS, send last buffer");
|
||||||
break;
|
break;
|
||||||
|
|
@ -1608,8 +1609,11 @@ gst_pipewire_src_create (GstPushSrc * psrc, GstBuffer ** buffer)
|
||||||
if (buf != NULL) {
|
if (buf != NULL) {
|
||||||
if (pwsrc->resend_last || pwsrc->keepalive_time > 0) {
|
if (pwsrc->resend_last || pwsrc->keepalive_time > 0) {
|
||||||
GstClock *clock;
|
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);
|
gst_buffer_add_parent_buffer_meta (pwsrc->last_buffer, buf);
|
||||||
|
|
||||||
clock = gst_element_get_clock (GST_ELEMENT_CAST (pwsrc));
|
clock = gst_element_get_clock (GST_ELEMENT_CAST (pwsrc));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue