Mercurial > mplayer.hg
comparison gui/interface.c @ 37094:09c3f76bc780
Remove unnecessary variable.
author | ib |
---|---|
date | Wed, 07 May 2014 14:14:49 +0000 |
parents | cdb4677ef147 |
children | 6cce7a87e800 |
comparison
equal
deleted
inserted
replaced
37093:cdb4677ef147 | 37094:09c3f76bc780 |
---|---|
403 dvd_priv_t *dvd; | 403 dvd_priv_t *dvd; |
404 #endif | 404 #endif |
405 int idata = (intptr_t)data, msg, state; | 405 int idata = (intptr_t)data, msg, state; |
406 stream_t *stream = NULL; | 406 stream_t *stream = NULL; |
407 sh_audio_t *sh_audio; | 407 sh_audio_t *sh_audio; |
408 const ad_functions_t *ad; | |
409 mixer_t *mixer; | 408 mixer_t *mixer; |
410 float l, r, b; | 409 float l, r, b; |
411 plItem *next = NULL; | 410 plItem *next = NULL; |
412 | 411 |
413 switch (what) { | 412 switch (what) { |
810 | 809 |
811 sh_audio = data; | 810 sh_audio = data; |
812 | 811 |
813 if (sh_audio) { | 812 if (sh_audio) { |
814 guiInfo.AudioChannels = sh_audio->channels; | 813 guiInfo.AudioChannels = sh_audio->channels; |
815 ad = sh_audio->ad_driver; | 814 guiInfo.AudioPassthrough = (gstrcmp(sh_audio->ad_driver->info->short_name, "hwac3") == 0); |
816 guiInfo.AudioPassthrough = (gstrcmp(ad->info->short_name, "hwac3") == 0); | |
817 } else { | 815 } else { |
818 guiInfo.AudioChannels = 0; | 816 guiInfo.AudioChannels = 0; |
819 guiInfo.AudioPassthrough = False; | 817 guiInfo.AudioPassthrough = False; |
820 } | 818 } |
821 | 819 |