this fix is sponsored by wc frisch
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 10 Nov 2005 17:01:18 +0000 (17:01 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 10 Nov 2005 17:01:18 +0000 (17:01 +0000)
lib/dvb/volume.cpp

index 0988569..78b9bde 100644 (file)
@@ -93,7 +93,7 @@ void eDVBVolumecontrol::setVolume(int left, int right)
                
        //HACK?
        FILE *f;
                
        //HACK?
        FILE *f;
-       if((f = fopen("/proc/stb/avs/0/volume", "wb")) < 0) {
+       if((f = fopen("/proc/stb/avs/0/volume", "wb")) == NULL) {
                printf("cannot open /proc/stb/avs/0/volume\n");
                return;
        }
                printf("cannot open /proc/stb/avs/0/volume\n");
                return;
        }