diff options
author | ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-22 06:27:55 +0000 |
---|---|---|
committer | ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-22 06:27:55 +0000 |
commit | 61d91f81960bf56ce5d59269e809ae67107f1762 (patch) | |
tree | f72d9da9753784db883e6bf0470fbd661d077144 /command.c | |
parent | 376bbbdae0e6c91bc6fe572b030f9fff20f83692 (diff) | |
download | mpv-61d91f81960bf56ce5d59269e809ae67107f1762.tar.bz2 mpv-61d91f81960bf56ce5d59269e809ae67107f1762.tar.xz |
Combine code for check availability of property audio(id).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25491 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -731,17 +731,16 @@ 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; |