libtriple: cVideo enabled SCART during record in standby

Origin commit data
------------------
Branch: master
Commit: 2871287681
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-03-20 (Sun, 20 Mar 2011)


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

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2011-03-20 09:05:48 +01:00
parent a05723bdf6
commit 6096329095
2 changed files with 9 additions and 3 deletions

View File

@@ -111,6 +111,7 @@ cVideo::cVideo(int, void *, void *)
}
close(blankfd);
}
video_standby = 0;
noscart = (getenv("TRIPLE_NOSCART") != NULL);
if (noscart)
lt_info("%s TRIPLE_NOSCART variable prevents SCART switching\n", __FUNCTION__);
@@ -228,9 +229,12 @@ int cVideo::setAspectRatio(int aspect, int mode)
perror("open tdsystem");
return 0;
}
lt_debug("%s set SCART_PIN_8 to %dV\n", __FUNCTION__, scartvoltage);
if (!noscart && scartvoltage > 0 && ioctl(avsfd, IOC_AVS_SCART_PIN8_SET, scartvoltage) < 0)
if (!noscart && scartvoltage > 0 && video_standby == 0)
{
lt_info("%s set SCART_PIN_8 to %dV\n", __FUNCTION__, scartvoltage);
if (ioctl(avsfd, IOC_AVS_SCART_PIN8_SET, scartvoltage) < 0)
perror("IOC_AVS_SCART_PIN8_SET");
}
close(avsfd);
return 0;
}
@@ -480,6 +484,7 @@ void cVideo::Standby(unsigned int bOn)
} else
fop(ioctl, MPEG_VID_SET_OUTFMT, outputformat);
routeVideo(bOn);
video_standby = bOn;
}
int cVideo::getBlank(void)

View File

@@ -133,6 +133,7 @@ class cVideo
DISPLAY_AR PictureAR;
VIDEO_FRAME_RATE FrameRate;
void routeVideo(int standby);
int video_standby;
public:
/* constructor & destructor */
cVideo(int mode, void *, void *);