Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 78230 | Differences between
and this patch

Collapse All | Expand All

(-)vdr-1.0.0.orig/dvbapi.c (-3 / +6 lines)
Lines 1987-1994 bool cDvbApi::GrabImage(const char *File Link Here
1987
              Quality = 255; //XXX is this 'best'???
1987
              Quality = 255; //XXX is this 'best'???
1988
         
1988
         
1989
           isyslog(LOG_INFO, "grabbing to %s (%s %d %d %d)", FileName, Jpeg ? "JPEG" : "PNM", Quality, vm.width, vm.height);
1989
           isyslog(LOG_INFO, "grabbing to %s (%s %d %d %d)", FileName, Jpeg ? "JPEG" : "PNM", Quality, vm.width, vm.height);
1990
           FILE *f = fopen(FileName, "wb");
1990
           int fd = open(FileName, O_CREAT | O_EXCL | O_TRUNC | O_RDWR, 0600);
1991
           if (f) {
1991
           if (fd > -1) {
1992
             FILE *f = fdopen(fd, "wb");
1993
             if (f) {
1992
              if (Jpeg) {
1994
              if (Jpeg) {
1993
                 // write JPEG file:
1995
                 // write JPEG file:
1994
                 struct jpeg_compress_struct cinfo;
1996
                 struct jpeg_compress_struct cinfo;
Lines 2022-2028 bool cDvbApi::GrabImage(const char *File Link Here
2022
                    }
2024
                    }
2023
                 }
2025
                 }
2024
              fclose(f);
2026
              fclose(f);
2025
              }
2027
	     }
2028
	   }
2026
           else {
2029
           else {
2027
              LOG_ERROR_STR(FileName);
2030
              LOG_ERROR_STR(FileName);
2028
              result |= 1;
2031
              result |= 1;

Return to bug 78230