Fix error message spam when no player is running

This commit is contained in:
Flisk 2018-10-05 10:30:21 -04:00 committed by Carlos R. Mafra
parent bfe8518888
commit a01f239aca

View file

@ -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);
volume = (int)(36 * volume_double);
if (volume > 36)
volume = 36;