FreeBSD Bugzilla – Attachment 48605 Details for
Bug 74375
[PATCH] sysutils/dvdbackup cannot get DVD-title
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 3.41 KB, created by
Zahemszky@, Gábor
on 2004-11-25 16:30:28 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Zahemszky@, Gábor
Created:
2004-11-25 16:30:28 UTC
Size:
3.41 KB
patch
obsolete
>*** src/dvdbackup.c.orig Mon Aug 5 08:08:39 2002 >--- src/dvdbackup.c Thu Nov 25 16:43:19 2004 >*************** void usage(){ >*** 210,215 **** >--- 210,216 ---- > fprintf(stderr,"\t-v X\t\twhere X is the amount of verbosity\n"); > fprintf(stderr,"\t-I\t\tfor information about the DVD\n"); > fprintf(stderr,"\t-o directory\twhere directory is your backup target\n"); >+ fprintf(stderr,"\t-n\t\tuse this as DVD name (if we can't get it)\n"); > fprintf(stderr,"\t-M\t\tbackup the whole DVD\n"); > fprintf(stderr,"\t-F\t\tbackup the main feature of the DVD\n"); > fprintf(stderr,"\t-T X\t\tbackup title set X\n"); >*************** void usage(){ >*** 219,226 **** > fprintf(stderr,"\t-a 0\t\tto get aspect ratio 4:3 instead of 16:9 if both are present\n"); > fprintf(stderr,"\t-h\t\tprint a brief usage message\n"); > fprintf(stderr,"\t-?\t\tprint a brief usage message\n\n"); >! fprintf(stderr,"\t-i is manditory\n"); >! fprintf(stderr,"\t-o is manditory except if you use -I\n"); > fprintf(stderr,"\t-a is option to the -F switch and has no effect on other options\n"); > fprintf(stderr,"\t-s and -e should prefereibly be used together with -t \n\n"); > exit(1); >--- 220,227 ---- > fprintf(stderr,"\t-a 0\t\tto get aspect ratio 4:3 instead of 16:9 if both are present\n"); > fprintf(stderr,"\t-h\t\tprint a brief usage message\n"); > fprintf(stderr,"\t-?\t\tprint a brief usage message\n\n"); >! fprintf(stderr,"\t-i is mandatory\n"); >! fprintf(stderr,"\t-o is mandatory except if you use -I\n"); > fprintf(stderr,"\t-a is option to the -F switch and has no effect on other options\n"); > fprintf(stderr,"\t-s and -e should prefereibly be used together with -t \n\n"); > exit(1); >*************** int DVDGetTitleName(const char *device, >*** 1530,1536 **** > > /* Seek to title of first track, which is at (track_no * 32768) + 40 */ > >! if ( 32808 != lseek(filehandle, 32808, SEEK_SET) ) { > close(filehandle); > fprintf(stderr, "Can't seek DVD device %s - check your DVD device\n", device); > return(1); >--- 1531,1537 ---- > > /* Seek to title of first track, which is at (track_no * 32768) + 40 */ > >! if ( 32768 != lseek(filehandle, 32768, SEEK_SET) ) { > close(filehandle); > fprintf(stderr, "Can't seek DVD device %s - check your DVD device\n", device); > return(1); >*************** int DVDGetTitleName(const char *device, >*** 1538,1549 **** > > /* Read the DVD-Video title */ > >! if ( 32 != read(filehandle, title, 32)) { > close(filehandle); > fprintf(stderr, "Can't read title from DVD device %s\n", device); > return(1); > } > > /* Terminate the title string */ > > title[32] = '\0'; >--- 1539,1556 ---- > > /* Read the DVD-Video title */ > >! #define DVD_SEC_SIZ 2048 >! { >! char tempBuf[ DVD_SEC_SIZ ]; >! >! if ( DVD_SEC_SIZ != read(filehandle, tempBuf, DVD_SEC_SIZ)) { > close(filehandle); > fprintf(stderr, "Can't read title from DVD device %s\n", device); > return(1); > } > >+ snprintf( title, 32, "%s", tempBuf + 40 ); >+ } > /* Terminate the title string */ > > title[32] = '\0'; >*************** int DVDDisplayInfo(dvd_reader_t * _dvd, >*** 2164,2170 **** > DVDGetTitleName(dvd,title_name); > > >! fprintf(stdout,"\n\n\nDVD-Video information of the DVD with tile %s\n\n", title_name); > > /* Print file structure */ > >--- 2171,2177 ---- > DVDGetTitleName(dvd,title_name); > > >! fprintf(stdout,"\n\n\nDVD-Video information of the DVD with title %s\n\n", title_name); > > /* Print file structure */ >===
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 74375
: 48605