ports/multimedia/transcode/files/patch-import:clone.c
Tilman Keskinoz 74d2a1519a Update to 0.6.4
Changes:
- update MASTER_SITES since the maintainer changed
- add %%WITH_NASM%% knob to Makefile and pkg-plist to honor WITH_NASM
  option correctly. Attention: WITH_NASM gets set if bin/nasm is
  found but this may not be enough for transcode as nasm >= 0.98.34
  is needed. Checking for bin/nasm-0.98.35 might be a way of achieving
  this but leads to more work when updating nasm itself.
- add WITH_SUBRIP knob suggested by Michael Nottebrock in
  ports/47923 and implemented in ports/48649.
- incorporate dvd_reader.c patch by Atte Peltomaeki which has already
  been added in ports/48649
- remove the transcode.c patch from ports/48649 since it made its way
  into the main distribution
- add threading patch by Andriy Gapon in ports/48126
- pkg-plist update

PR:		50377
Submitted by:	maintainer
2003-04-05 22:53:51 +00:00

21 lines
729 B
C

--- import/clone.c.orig Thu Mar 27 19:17:57 2003
+++ import/clone.c Thu Mar 27 19:19:16 2003
@@ -74,6 +74,8 @@
perror("open file");
return(-1);
}
+ fcntl(sfd, F_SETFD, FD_CLOEXEC);
+
if(verbose & TC_DEBUG) fprintf(stderr, "(%s) reading video frame sync data from %s\n", __FILE__, logfile);
@@ -349,7 +351,8 @@
if(verbose & TC_SYNC) fprintf(stderr, "READ (%d)\n", i);
if((j=p_read(sfd, (char *) ptr->sync_info, sizeof(sync_info_t))) != sizeof(sync_info_t)) {
-
+
+ if(j < 0) perror("p_read failed");
if(verbose & TC_DEBUG) fprintf(stderr, "(%s) p_read error (%d/%d)\n", __FILE__, j, sizeof(sync_info_t));
pthread_mutex_lock(&buffer_fill_lock);
clone_read_thread_flag=0;