Changeset 1193f04


Ignore:
Timestamp:
04/21/06 20:22:33 (10 years ago)
Author:
titer <eric@…>
Branches:
master
Children:
3d93903
Parents:
aa987aa
Message:

Fixed scanning of DVD folders

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@67 b64f7644-9d1e-0410-96f1-a4d463321fa5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libhb/dvd.c

    r9819207 r1193f04  
    124124    unsigned char  unused[1024];
    125125
     126    hb_log( "scan: scanning title %d", t );
     127
    126128    title = hb_title_init( d->path, t );
    127129    if( DVDUDFVolumeInfo( d->reader, title->name, sizeof( title->name ),
    128130                          unused, sizeof( unused ) ) )
    129131    {
    130         goto fail;
    131     }
    132 
    133     hb_log( "scan: scanning title %d", t );
     132        char * p_cur, * p_last = d->path;
     133        for( p_cur = d->path; *p_cur; p_cur++ )
     134        {
     135            if( p_cur[0] == '/' && p_cur[1] )
     136            {
     137                p_last = &p_cur[1];
     138            }
     139        }
     140        snprintf( title->name, sizeof( title->name ), "%s", p_last );
     141    }
    134142
    135143    /* VTS which our title is in */
Note: See TracChangeset for help on using the changeset viewer.