summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-22 06:35:35 +0000
committerulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-22 06:35:35 +0000
commit3db51117ddb3ac38fbf30a22bdf2d21e871d65c1 (patch)
treedf873477cb85669d4e8b8c72fe27be97e55e8e96 /command.c
parent61d91f81960bf56ce5d59269e809ae67107f1762 (diff)
downloadmpv-3db51117ddb3ac38fbf30a22bdf2d21e871d65c1.tar.bz2
mpv-3db51117ddb3ac38fbf30a22bdf2d21e871d65c1.tar.xz
Revert to r25490, since the r25491 is not correct.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25492 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'command.c')
-rw-r--r--command.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/command.c b/command.c
index f76f726afc..0e0ea7239f 100644
--- a/command.c
+++ b/command.c
@@ -731,16 +731,17 @@ static int mp_property_audio(m_option_t * prop, int action, void *arg,
{
int current_id = -1, tmp;
- if (!mpctx->sh_audio)
- return M_PROPERTY_UNAVAILABLE;
-
switch (action) {
case M_PROPERTY_GET:
+ if (!mpctx->sh_audio)
+ return M_PROPERTY_UNAVAILABLE;
if (!arg)
return M_PROPERTY_ERROR;
*(int *) arg = audio_id;
return M_PROPERTY_OK;
case M_PROPERTY_PRINT:
+ if (!mpctx->sh_audio)
+ return M_PROPERTY_UNAVAILABLE;
if (!arg)
return M_PROPERTY_ERROR;