summaryrefslogtreecommitdiffstats
path: root/libhb/dvd.c
diff options
context:
space:
mode:
authortiter <[email protected]>2006-04-20 12:30:53 +0000
committertiter <[email protected]>2006-04-20 12:30:53 +0000
commit981920783c91687707aa4131ed83073503f3cd74 (patch)
tree6b04c5ee62a22292d8fe0850fc50443600f9e556 /libhb/dvd.c
parent1d4535870a4212535c56f79f784c30a018a3e646 (diff)
Use the DVD name for the output file
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@65 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/dvd.c')
-rw-r--r--libhb/dvd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/dvd.c b/libhb/dvd.c
index 7d19fae11..4c894a907 100644
--- a/libhb/dvd.c
+++ b/libhb/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 );