[spark] video: change psi settings on demand only

Origin commit data
------------------
Branch: master
Commit: 687a244b61
Author: martii <m4rtii@gmx.de>
Date: 2014-01-20 (Mon, 20 Jan 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-01-20 17:57:02 +01:00
parent aa349cfc73
commit c5502997d6

View File

@@ -304,14 +304,22 @@ int cVideo::Start(void * /*PcrChannel*/, unsigned short /*PcrPid*/, unsigned sho
playstate = VIDEO_PLAYING; playstate = VIDEO_PLAYING;
fop(ioctl, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_DEMUX); fop(ioctl, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_DEMUX);
int res = fop(ioctl, VIDEO_PLAY); int res = fop(ioctl, VIDEO_PLAY);
if (brightness > -1) if (brightness > -1) {
SetControl(VIDEO_CONTROL_BRIGHTNESS, brightness); SetControl(VIDEO_CONTROL_BRIGHTNESS, brightness);
if (contrast > -1) brightness = -1;
}
if (contrast > -1) {
SetControl(VIDEO_CONTROL_CONTRAST, contrast); SetControl(VIDEO_CONTROL_CONTRAST, contrast);
if (saturation > -1) contrast = -1;
}
if (saturation > -1) {
SetControl(VIDEO_CONTROL_SATURATION, saturation); SetControl(VIDEO_CONTROL_SATURATION, saturation);
if (hue > -1) saturation = -1;
}
if (hue > -1) {
SetControl(VIDEO_CONTROL_HUE, hue); SetControl(VIDEO_CONTROL_HUE, hue);
hue = -1;
}
return res; return res;
} }