Fix error message spam when no player is running
This commit is contained in:
parent
bfe8518888
commit
a01f239aca
|
@ -633,9 +633,11 @@ void DrawArrow(void)
|
|||
void DrawVolume(void)
|
||||
{
|
||||
int volume;
|
||||
double volume_double;
|
||||
double volume_double = 0.0;
|
||||
|
||||
if (player)
|
||||
g_object_get(player, "volume", &volume_double, NULL);
|
||||
|
||||
g_object_get(player, "volume", &volume_double, NULL);
|
||||
volume = (int)(36 * volume_double);
|
||||
if (volume > 36)
|
||||
volume = 36;
|
||||
|
|
Loading…
Reference in a new issue