mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
libtriple: fix filedescriptor leak in cVideo::routeVideo()
Origin commit data
------------------
Branch: ni/coolstream
Commit: e786a4ef75
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-01-02 (Sun, 02 Jan 2011)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -654,16 +654,16 @@ void cVideo::routeVideo(int standby)
|
||||
perror("IOC_AVS_SCART_PIN8_FOLLOW_VCR");
|
||||
if (ioctl(avsfd, IOC_AVS_ROUTE_VCR2TV) < 0)
|
||||
perror("IOC_AVS_ROUTE_VCR2TV");
|
||||
return;
|
||||
} else {
|
||||
unsigned char fblk = 1;
|
||||
printf("[%s] setting fastblank to %d, pin8 to %dV, routing encoder to TV\n", __FUNCTION__, fblk, scartvoltage);
|
||||
if (ioctl(avsfd, IOC_AVS_FASTBLANK_SET, fblk) < 0)
|
||||
perror("IOC_AVS_FASTBLANK_SET, fblk");
|
||||
if (ioctl(avsfd, IOC_AVS_SCART_PIN8_SET, scartvoltage) < 0)
|
||||
perror("IOC_AVS_SCART_PIN8_SET");
|
||||
if (ioctl(avsfd, IOC_AVS_ROUTE_ENC2TV) < 0)
|
||||
perror("IOC_AVS_ROUTE_ENC2TV");
|
||||
}
|
||||
unsigned char fblk = 1;
|
||||
printf("[%s] setting fastblank to %d, pin8 to %dV, routing encoder to TV\n", __FUNCTION__, fblk, scartvoltage);
|
||||
if (ioctl(avsfd, IOC_AVS_FASTBLANK_SET, fblk) < 0)
|
||||
perror("IOC_AVS_FASTBLANK_SET, fblk");
|
||||
if (ioctl(avsfd, IOC_AVS_SCART_PIN8_SET, scartvoltage) < 0)
|
||||
perror("IOC_AVS_SCART_PIN8_SET");
|
||||
if (ioctl(avsfd, IOC_AVS_ROUTE_ENC2TV) < 0)
|
||||
perror("IOC_AVS_ROUTE_ENC2TV");
|
||||
close(avsfd);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user