[MPlayer-cvslog] r25491 - trunk/command.c
ulion
subversion at mplayerhq.hu
Sat Dec 22 07:27:55 CET 2007
Author: ulion
Date: Sat Dec 22 07:27:55 2007
New Revision: 25491
Log:
Combine code for check availability of property audio(id).
Modified:
trunk/command.c
Modified: trunk/command.c
==============================================================================
--- trunk/command.c (original)
+++ trunk/command.c Sat Dec 22 07:27:55 2007
@@ -731,17 +731,16 @@ static int mp_property_audio(m_option_t
{
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;
More information about the MPlayer-cvslog
mailing list