From: titer Date: Thu, 20 Apr 2006 12:30:53 +0000 (+0000) Subject: Use the DVD name for the output file X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fa3ce1342ae065f70fecec4b53bd9d22ae7a695;p=handbrake Use the DVD name for the output file git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk/libhb@65 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/common.h b/common.h index f5af73c03..866eb98b2 100644 --- a/common.h +++ b/common.h @@ -240,6 +240,7 @@ struct hb_subtitle_s struct hb_title_s { char dvd[1024]; + char name[1024]; int index; int vts; int ttn; diff --git a/dvd.c b/dvd.c index 7d19fae11..4c894a907 100644 --- a/dvd.c +++ b/dvd.c @@ -121,8 +121,14 @@ hb_title_t * hb_dvd_title_scan( hb_dvd_t * d, int t ) int c; uint64_t duration; float duration_correction; + unsigned char unused[1024]; title = hb_title_init( d->path, t ); + if( DVDUDFVolumeInfo( d->reader, title->name, sizeof( title->name ), + unused, sizeof( unused ) ) ) + { + goto fail; + } hb_log( "scan: scanning title %d", t );