diff options
author | wm4 <wm4@nowhere> | 2018-02-01 07:00:37 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-02-03 05:01:28 -0800 |
commit | debc17663d677526bd67a7faea5233e1a49078e4 (patch) | |
tree | c9d0882d0535b4020121501eee4aba22c46f7db3 /filters/filter.c | |
parent | afb167cfd2521198539fbd23d772a252554221f0 (diff) | |
download | mpv-debc17663d677526bd67a7faea5233e1a49078e4.tar.bz2 mpv-debc17663d677526bd67a7faea5233e1a49078e4.tar.xz |
filter: add/use a convenience function
I guess this is generally useful for filters which buffer data
internally.
Diffstat (limited to 'filters/filter.c')
-rw-r--r-- | filters/filter.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/filters/filter.c b/filters/filter.c index bbd8a4ff5b..60e9bc265e 100644 --- a/filters/filter.c +++ b/filters/filter.c @@ -256,6 +256,12 @@ bool mp_pin_out_request_data(struct mp_pin *p) return mp_pin_out_has_data(p); } +void mp_pin_out_request_data_next(struct mp_pin *p) +{ + if (mp_pin_out_request_data(p)) + update_filter(p->owner, p->conn->manual_connection); +} + struct mp_frame mp_pin_out_read(struct mp_pin *p) { if (!mp_pin_out_request_data(p)) |