Mercurial > libdvdread4.hg
comparison dvd_reader.c @ 42:3aa39a1cff0f src
Remove empty if clause.
An if clause is empty. This makes the else do all of the work
and still ends up w/ a larger object file because the if clause
is stuck into the object file. By moving to the logical not of
the if we can remove the empty clause.
author | erik |
---|---|
date | Wed, 02 Sep 2009 01:34:23 +0000 |
parents | ef679522d00f |
children | 92b4694792da |
comparison
equal
deleted
inserted
replaced
41:ef679522d00f | 42:3aa39a1cff0f |
---|---|
880 void DVDCloseFile( dvd_file_t *dvd_file ) | 880 void DVDCloseFile( dvd_file_t *dvd_file ) |
881 { | 881 { |
882 int i; | 882 int i; |
883 | 883 |
884 if( dvd_file ) { | 884 if( dvd_file ) { |
885 if( dvd_file->dvd->isImageFile ) { | 885 if( !dvd_file->dvd->isImageFile ) { |
886 ; | |
887 } else { | |
888 for( i = 0; i < TITLES_MAX; ++i ) { | 886 for( i = 0; i < TITLES_MAX; ++i ) { |
889 if( dvd_file->title_devs[ i ] ) { | 887 if( dvd_file->title_devs[ i ] ) { |
890 dvdinput_close( dvd_file->title_devs[i] ); | 888 dvdinput_close( dvd_file->title_devs[i] ); |
891 } | 889 } |
892 } | 890 } |