[MPlayer-cvslog] r37190 - in trunk/gui: interface.c win32/interface.c
ib
subversion at mplayerhq.hu
Wed May 7 16:14:49 CEST 2014
Author: ib
Date: Wed May 7 16:14:49 2014
New Revision: 37190
Log:
Remove unnecessary variable.
Modified:
trunk/gui/interface.c
trunk/gui/win32/interface.c
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Wed May 7 16:09:10 2014 (r37189)
+++ trunk/gui/interface.c Wed May 7 16:14:49 2014 (r37190)
@@ -405,7 +405,6 @@ int gui(int what, void *data)
int idata = (intptr_t)data, msg, state;
stream_t *stream = NULL;
sh_audio_t *sh_audio;
- const ad_functions_t *ad;
mixer_t *mixer;
float l, r, b;
plItem *next = NULL;
@@ -812,8 +811,7 @@ int gui(int what, void *data)
if (sh_audio) {
guiInfo.AudioChannels = sh_audio->channels;
- ad = sh_audio->ad_driver;
- guiInfo.AudioPassthrough = (gstrcmp(ad->info->short_name, "hwac3") == 0);
+ guiInfo.AudioPassthrough = (gstrcmp(sh_audio->ad_driver->info->short_name, "hwac3") == 0);
} else {
guiInfo.AudioChannels = 0;
guiInfo.AudioPassthrough = False;
Modified: trunk/gui/win32/interface.c
==============================================================================
--- trunk/gui/win32/interface.c Wed May 7 16:09:10 2014 (r37189)
+++ trunk/gui/win32/interface.c Wed May 7 16:14:49 2014 (r37190)
@@ -562,7 +562,6 @@ int gui(int what, void *data)
int idata = (intptr_t) data;
stream_t *stream;
sh_audio_t *sh_audio;
- const ad_functions_t *ad;
#ifdef CONFIG_DVDREAD
dvd_priv_t *dvdp;
#endif
@@ -628,8 +627,7 @@ int gui(int what, void *data)
if (sh_audio)
{
guiInfo.AudioChannels = sh_audio->channels;
- ad = sh_audio->ad_driver;
- guiInfo.AudioPassthrough = (gstrcmp(ad->info->short_name, "hwac3") == 0);
+ guiInfo.AudioPassthrough = (gstrcmp(sh_audio->ad_driver->info->short_name, "hwac3") == 0);
}
else
{
More information about the MPlayer-cvslog
mailing list