diff options
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | lcd.c | 2 |
3 files changed, 6 insertions, 3 deletions
@@ -88,4 +88,7 @@ VDR Plugin 'lcdproc' Revision History Head: - updated italian translation (provided by Diego Pierotto <vdr-italian@tiscali.it>) +- fixed a bug with displaying the volume bar. If connection to LCDd is lost and + volume is changed in the meantime, the volume bar got mixed up after reconnection. +
\ No newline at end of file @@ -22,8 +22,8 @@ CXXFLAGS ?= -fPIC -g -O2 -Wall -Woverloaded-virtual ### The directory environment: -VDRDIR = ../../.. -LIBDIR = ../../lib +VDRDIR ?= ../../.. +LIBDIR = $(VDRDIR)/PLUGINS/lib TMPDIR = /tmp ### Allow user defined options to overwrite defaults: @@ -356,7 +356,6 @@ void cLcd::SetWarning( const char *string) { } void cLcd::ShowVolume(int vol, bool absolute ) { -if (!connected) return; BeginMutualExclusion(); if (absolute) ThreadStateData.volume=vol; @@ -365,6 +364,7 @@ if (!connected) return; ThreadStateData.muted=(ThreadStateData.volume==0); ThreadStateData.showvolume=true; EndMutualExclusion(); + if (!connected) return; if (ThreadStateData.muted) { cLcd::SetLine(Vol,0," "); cLcd::SetLine(Vol,1,Convert(tr("Mute"))); |