changeset 25464:6f45e8b913cf

Revert to r25490, since the r25491 is not correct.
author ulion
date Sat, 22 Dec 2007 06:35:35 +0000
parents 2a0982bac1b0
children 6b9447dc7590
files command.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/command.c	Sat Dec 22 06:27:55 2007 +0000
+++ b/command.c	Sat Dec 22 06:35:35 2007 +0000
@@ -731,16 +731,17 @@
 {
     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;