No longer try to set the volume if the file descriptor is invalid (OSS)

This commit is contained in:
Pierre Pronchery 2010-05-06 17:26:41 +00:00
parent d4436e172c
commit 512de4cf65

View File

@ -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);