FreeBSD Bugzilla – Attachment 28672 Details for
Bug 48126
transcode -M2 doesn't properly work for DVD->SVCD conversion
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch-pipe-io-new
patch-pipe-io-new (text/plain), 1.30 KB, created by
Andriy Gapon
on 2003-02-10 00:50:21 UTC
(
hide
)
Description:
patch-pipe-io-new
Filename:
MIME Type:
Creator:
Andriy Gapon
Created:
2003-02-10 00:50:21 UTC
Size:
1.30 KB
patch
obsolete
>--- import/ioaux.c.orig Sun Feb 9 19:05:12 2003 >+++ import/ioaux.c Sun Feb 9 19:05:29 2003 >@@ -36,8 +36,14 @@ > while (r < len) { > n = read (fd, buf + r, len - r); > >- if (n <= 0) >- return r; >+ if (n == 0) >+ break; >+ if (n < 0) { >+ if (errno == EINTR) >+ continue; >+ else >+ break; >+ } > r += n; > } > >@@ -51,9 +57,12 @@ > > while (r < len) { > n = write (fd, buf + r, len - r); >- if (n < 0) >- return n; >- >+ if (n < 0) { >+ if (errno == EINTR) >+ continue; >+ else >+ break; >+ } > r += n; > } > return r; >--- import/clone.c.orig Sun Feb 9 19:04:36 2003 >+++ import/clone.c Sun Feb 9 19:04:34 2003 >@@ -75,6 +75,8 @@ > 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); > > // allocate space, assume max buffer size >@@ -345,6 +347,7 @@ > > 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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 48126
: 28672