Revert to r25490, since the r25491 is not correct.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25492 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ulion 2007-12-22 06:35:35 +00:00
parent 61d91f8196
commit 3db51117dd
1 changed files with 4 additions and 3 deletions

View File

@ -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;