mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
gst: update to current API
This commit is contained in:
parent
e0676fcef8
commit
3f45ccd6a5
3 changed files with 6 additions and 6 deletions
|
|
@ -50,12 +50,12 @@ gst_pipewire_clock_get_internal_time (GstClock * clock)
|
||||||
|
|
||||||
pw_stream_get_time (pclock->stream, &t);
|
pw_stream_get_time (pclock->stream, &t);
|
||||||
|
|
||||||
if (t.rate)
|
if (t.rate.denom)
|
||||||
result = gst_util_uint64_scale_int (t.ticks, GST_SECOND, t.rate);
|
result = gst_util_uint64_scale_int (t.ticks, GST_SECOND * t.rate.num, t.rate.denom);
|
||||||
else
|
else
|
||||||
result = GST_CLOCK_TIME_NONE;
|
result = GST_CLOCK_TIME_NONE;
|
||||||
|
|
||||||
GST_DEBUG ("%"PRId64", %d %"PRId64, t.ticks, t.rate, result);
|
GST_DEBUG ("%"PRId64", %d %"PRId64, t.ticks, t.rate.denom, result);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -225,7 +225,7 @@ pool_activated (GstPipeWirePool *pool, GstPipeWireSink *sink)
|
||||||
guint size;
|
guint size;
|
||||||
guint min_buffers;
|
guint min_buffers;
|
||||||
guint max_buffers;
|
guint max_buffers;
|
||||||
struct spa_pod *port_params[2];
|
const struct spa_pod *port_params[2];
|
||||||
struct spa_pod_builder b = { NULL };
|
struct spa_pod_builder b = { NULL };
|
||||||
uint8_t buffer[1024];
|
uint8_t buffer[1024];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -618,7 +618,7 @@ gst_pipewire_src_negotiate (GstBaseSrc * basesrc)
|
||||||
pw_stream_connect (pwsrc->stream,
|
pw_stream_connect (pwsrc->stream,
|
||||||
PW_DIRECTION_INPUT,
|
PW_DIRECTION_INPUT,
|
||||||
pwsrc->path,
|
pwsrc->path,
|
||||||
PW_STREAM_FLAG_AUTOCONNECT | PW_STREAM_FLAG_CLOCK_UPDATE,
|
PW_STREAM_FLAG_AUTOCONNECT,
|
||||||
(const struct spa_pod **)possible->pdata,
|
(const struct spa_pod **)possible->pdata,
|
||||||
possible->len);
|
possible->len);
|
||||||
g_ptr_array_free (possible, TRUE);
|
g_ptr_array_free (possible, TRUE);
|
||||||
|
|
@ -703,7 +703,7 @@ on_format_changed (void *data,
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
struct spa_pod *params[2];
|
const struct spa_pod *params[2];
|
||||||
struct spa_pod_builder b = { NULL };
|
struct spa_pod_builder b = { NULL };
|
||||||
uint8_t buffer[512];
|
uint8_t buffer[512];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue