Skip to content

Commit

Permalink
Fixed scanning of DVD folders
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@67 b64f7644-9d1e-0410-96f1-a4d463321fa5
  • Loading branch information
titer committed Apr 21, 2006
1 parent aa987aa commit 1193f04
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions libhb/dvd.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,23 @@ hb_title_t * hb_dvd_title_scan( hb_dvd_t * d, int t )
float duration_correction;
unsigned char unused[1024];

hb_log( "scan: scanning title %d", t );

title = hb_title_init( d->path, t );
if( DVDUDFVolumeInfo( d->reader, title->name, sizeof( title->name ),
unused, sizeof( unused ) ) )
{
goto fail;
char * p_cur, * p_last = d->path;
for( p_cur = d->path; *p_cur; p_cur++ )
{
if( p_cur[0] == '/' && p_cur[1] )
{
p_last = &p_cur[1];
}
}
snprintf( title->name, sizeof( title->name ), "%s", p_last );
}

hb_log( "scan: scanning title %d", t );

/* VTS which our title is in */
title->vts = d->vmg->tt_srpt->title[t-1].title_set_nr;

Expand Down

0 comments on commit 1193f04

Please sign in to comment.