audiosink: expose more audioringbuffer vmethods to child sinks
authorPhilippe Renon <philippe_renon@yahoo.fr>
Tue, 10 Oct 2017 18:41:31 +0000 (20:41 +0200)
committerRobert Rosengren <robertr@axis.com>
Fri, 27 Sep 2019 05:34:57 +0000 (05:34 +0000)
commit0dc1b6049ebdf2166df5c0c45b540a66b0419c2e
tree8a2a04284d5b06e13a03ab1b24ea459571a71127
parentf1d3307e03f6b2deb48976f1d3e41f5c7f1fb777
audiosink: expose more audioringbuffer vmethods to child sinks

The newly exposed vmethods are pause, resume, stop and clear_all.
The existing reset vmethod is deprecated.

The audio sink will fallback to calling reset if pause or stop
are not provided and will fallback to calling start if
resume is not provided. There is no default clear_all
implementation.
Existing audio sinks continue to work as before.

This change is useful for sinks that need to distinguish
between a pause and a stop (currently both are handled
by a reset) and is needed for https://bugzilla.gnome.org/show_bug.cgi?id=788362

https://bugzilla.gnome.org/show_bug.cgi?id=788361
gst-libs/gst/audio/gstaudioringbuffer.c
gst-libs/gst/audio/gstaudioringbuffer.h
gst-libs/gst/audio/gstaudiosink.c
gst-libs/gst/audio/gstaudiosink.h