Commit 794e0364 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

mixertrack: add READONLY and WRITEONLY flags

Should really have been READABLE and WRITABLE, but those are hard to
add whilst maintaining backwards compatibility. See #343615.

API: GST_MIXER_TRACK_READONLY
API: GST_MIXER_TRACK_WRITEONLY
parent e4e8417e
...@@ -69,6 +69,8 @@ G_BEGIN_DECLS ...@@ -69,6 +69,8 @@ G_BEGIN_DECLS
* @GST_MIXER_TRACK_NO_MUTE: play track doesn't support mute. Since: 0.10.23 * @GST_MIXER_TRACK_NO_MUTE: play track doesn't support mute. Since: 0.10.23
* @GST_MIXER_TRACK_WHITELIST: track should be displayed "by default" in apps. * @GST_MIXER_TRACK_WHITELIST: track should be displayed "by default" in apps.
* Since: 0.10.23 * Since: 0.10.23
* @GST_MIXER_TRACK_READONLY: track is read-only. Since: 0.10.25
* @GST_MIXER_TRACK_WRITEONLY: track is write-only. Since: 0.10.25
* *
* Mixer track flags. * Mixer track flags.
*/ */
...@@ -82,8 +84,12 @@ typedef enum { ...@@ -82,8 +84,12 @@ typedef enum {
GST_MIXER_TRACK_NO_RECORD = (1<<6), GST_MIXER_TRACK_NO_RECORD = (1<<6),
GST_MIXER_TRACK_NO_MUTE = (1<<7), GST_MIXER_TRACK_NO_MUTE = (1<<7),
GST_MIXER_TRACK_WHITELIST = (1<<8), GST_MIXER_TRACK_WHITELIST = (1<<8),
GST_MIXER_TRACK_READONLY = (1<<9),
GST_MIXER_TRACK_WRITEONLY = (1<<10)
} GstMixerTrackFlags; } GstMixerTrackFlags;
/* FIXME 0.11: READONLY/WRITEONLY -> READABLE/WRITABLE etc. */
#define GST_MIXER_TRACK_HAS_FLAG(channel, flag) \ #define GST_MIXER_TRACK_HAS_FLAG(channel, flag) \
((channel)->flags & flag) ((channel)->flags & flag)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment