mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05:00
filter: deprecate pw_filter_get_time()
The info is already in the io_position area that is passed to the process function.
This commit is contained in:
parent
46d1328e1c
commit
421b3b6ece
3 changed files with 5 additions and 13 deletions
2
NEWS
2
NEWS
|
|
@ -1,4 +1,4 @@
|
||||||
# PipeWire 0.3.49 (2022-03-31)
|
# PipeWire 0.3.49 (2022-03-29)
|
||||||
|
|
||||||
This is a bugfix release that is API and ABI compatible with previous
|
This is a bugfix release that is API and ABI compatible with previous
|
||||||
0.3.x releases.
|
0.3.x releases.
|
||||||
|
|
|
||||||
|
|
@ -974,7 +974,7 @@ static inline void copy_position(struct filter *impl)
|
||||||
impl->clock_id = p->clock.id;
|
impl->clock_id = p->clock.id;
|
||||||
}
|
}
|
||||||
impl->time.ticks = p->clock.position - impl->base_pos;
|
impl->time.ticks = p->clock.position - impl->base_pos;
|
||||||
impl->time.delay = p->clock.delay;
|
impl->time.delay = 0;
|
||||||
SEQ_WRITE(impl->seq);
|
SEQ_WRITE(impl->seq);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -217,17 +217,9 @@ pw_filter_update_params(struct pw_filter *filter, /**< a \ref pw_filter */
|
||||||
uint32_t n_params /**< number of elements in \a params */);
|
uint32_t n_params /**< number of elements in \a params */);
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
/** Query the time on the filter, deprecated, use the spa_io_position in the
|
||||||
/** A time structure */
|
* process() method for timing information. */
|
||||||
struct pw_time {
|
SPA_DEPRECATED
|
||||||
int64_t now; /**< the monotonic time */
|
|
||||||
struct spa_fraction rate; /**< the rate of \a ticks and delay */
|
|
||||||
uint64_t ticks; /**< the ticks at \a now. This is the current time that
|
|
||||||
* the remote end is reading/writing. */
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/** Query the time on the filter */
|
|
||||||
int pw_filter_get_time(struct pw_filter *filter, struct pw_time *time);
|
int pw_filter_get_time(struct pw_filter *filter, struct pw_time *time);
|
||||||
|
|
||||||
/** Get a buffer that can be filled for output ports or consumed
|
/** Get a buffer that can be filled for output ports or consumed
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue