LADI
/
spa
1
Fork 0

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:
Wim Taymans 2022-03-29 17:28:11 +02:00
parent 46d1328e1c
commit 421b3b6ece
3 changed files with 5 additions and 13 deletions

2
NEWS
View File

@ -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
0.3.x releases.

View File

@ -974,7 +974,7 @@ static inline void copy_position(struct filter *impl)
impl->clock_id = p->clock.id;
}
impl->time.ticks = p->clock.position - impl->base_pos;
impl->time.delay = p->clock.delay;
impl->time.delay = 0;
SEQ_WRITE(impl->seq);
}
}

View File

@ -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 */);
#if 0
/** A time structure */
struct pw_time {
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 */
/** Query the time on the filter, deprecated, use the spa_io_position in the
* process() method for timing information. */
SPA_DEPRECATED
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