No longer try to set the volume if the file descriptor is invalid (OSS)
This commit is contained in:
parent
d4436e172c
commit
512de4cf65
|
@ -267,6 +267,8 @@ int _volume_set(Volume * volume, gdouble value)
|
|||
#else
|
||||
int v = value * 100;
|
||||
|
||||
if(volume->fd < 0)
|
||||
return 1;
|
||||
v |= v << 8;
|
||||
# ifdef DEBUG
|
||||
fprintf(stderr, "DEBUG: %s(%lf) 0x%04x\n", __func__, value, v);
|
||||
|
|
Loading…
Reference in New Issue
Block a user