Mercurial > libdvdnav.hg
changeset 357:8949e15ebbd4 src
cosmetics: fewer useless braces
author | nicodvb |
---|---|
date | Sat, 10 May 2008 20:21:37 +0000 |
parents | da4ae9160df7 |
children | e998b2df2200 |
files | dvdread/dvd_udf.c |
diffstat | 1 files changed, 9 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/dvdread/dvd_udf.c Sat May 10 10:24:22 2008 +0000 +++ b/dvdread/dvd_udf.c Sat May 10 20:21:37 2008 +0000 @@ -153,9 +153,8 @@ free(c->lbs[n].data_base); free(c->lbs); } - if(c->maps) { + if(c->maps) free(c->maps); - } free(c); } @@ -228,9 +227,8 @@ int n; struct udf_cache *c; - if(DVDUDFCacheLevel(device, -1) <= 0) { + if(DVDUDFCacheLevel(device, -1) <= 0) return 0; - } c = (struct udf_cache *)GetUDFCacheHandle(device); @@ -503,11 +501,10 @@ } do { - if( DVDReadLBUDF( device, lbnum++, 1, LogBlock, 0 ) <= 0 ) { + if( DVDReadLBUDF( device, lbnum++, 1, LogBlock, 0 ) <= 0 ) TagID = 0; - } else { + else UDFDescriptor( LogBlock, &TagID ); - } if( TagID == 261 ) { UDFFileEntry( LogBlock, FileType, partition, File ); @@ -574,9 +571,8 @@ data[1] = cached_dir; SetUDFCache(device, LBUDFCache, lbnum, data); } - } else { + } else in_cache = 1; - } if(cached_dir == NULL) return 0; @@ -637,9 +633,8 @@ if( !strcasecmp( FileName, filename ) ) { return 1; } - } else { + } else return 0; - } } return 0; @@ -692,10 +687,9 @@ return 0; } } - } else { + } else /* It's an anchor! We can leave */ break; - } } /* Main volume descriptor */ UDFExtentAD( &Anchor[ 16 ], &MVDS_length, &MVDS_location ); @@ -743,11 +737,10 @@ lbnum = MVDS_location; do { - if( DVDReadLBUDF( device, lbnum++, 1, LogBlock, 0 ) <= 0 ) { + if( DVDReadLBUDF( device, lbnum++, 1, LogBlock, 0 ) <= 0 ) TagID = 0; - } else { + else UDFDescriptor( LogBlock, &TagID ); - } if( ( TagID == 5 ) && ( !part->valid ) ) { /* Partition Descriptor */