summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-04-09 03:03:22 +0300
committerUoti Urpala <uau@mplayer2.org>2011-04-09 03:03:22 +0300
commit2a7c5a1365ad194a42e3f667f85828a152544857 (patch)
tree76c8ec2336e1f90f2e282bf130b876931fdb66cc /command.c
parent9ef15ac4fc28ecf85a497bc664246f227b40c135 (diff)
downloadmpv-2a7c5a1365ad194a42e3f667f85828a152544857.tar.bz2
mpv-2a7c5a1365ad194a42e3f667f85828a152544857.tar.xz
audio: change external AO interface to "ao_[method](ao, ...)"
Make the outside interface of audio output handling similar to the video output one. An AO object is first created, and then methods called with ao_[methodname](ao, args...). However internally libao2/ still holds all data in globals, and trying to create multiple simultaneous AO instances won't work.
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.c b/command.c
index 48f6108a2c..8aeff84e63 100644
--- a/command.c
+++ b/command.c
@@ -459,7 +459,7 @@ static int mp_property_percent_pos(m_option_t *prop, int action,
/// Current position in seconds (RW)
static int mp_property_time_pos(m_option_t *prop, int action,
void *arg, MPContext *mpctx) {
- if (!(mpctx->sh_video || (mpctx->sh_audio && mpctx->audio_out)))
+ if (!(mpctx->sh_video || mpctx->sh_audio))
return M_PROPERTY_UNAVAILABLE;
switch(action) {