-
- while(!result)
- {
- result = file->read_tag();
- if(!result)
- {
- if(file->tag.title_is("/ASSET"))
- {
- result = 1;
- }
- else
- if(file->tag.title_is("AUDIO"))
- {
- read_audio(file);
- }
- else
- if(file->tag.title_is("AUDIO_OMIT"))
- {
- read_audio(file);
- }
- else
- if(file->tag.title_is("FORMAT"))
- {
- const char *string = file->tag.get_property("TYPE");
- format = File::strtoformat(string);
- use_header =
- file->tag.get_property("USE_HEADER", use_header);
- file->tag.get_property("FFORMAT", fformat);
- }
- else
- if(file->tag.title_is("FOLDER"))
- {
- folder_no = file->tag.get_property("NUMBER", AW_MEDIA_FOLDER);
- }
- else
- if(file->tag.title_is("VIDEO"))
- {
- read_video(file);
- }
- else
- if(file->tag.title_is("VIDEO_OMIT"))
- {
- read_video(file);
- }
- else
- if(file->tag.title_is("INDEX"))
- {
- read_index(file);
- }
- }
+ while( !(result=file->read_tag()) ) {
+ if( file->tag.title_is("/ASSET") ) break;
+ if( file->tag.title_is("AUDIO") ) { read_audio(file); continue; }
+ if( file->tag.title_is("AUDIO_OMIT") ) { read_audio(file); continue; }
+ if( file->tag.title_is("FORMAT") ) { read_format(file); continue; }
+ if( file->tag.title_is("VIDEO") ) { read_video(file); continue; }
+ if( file->tag.title_is("VIDEO_OMIT") ) { read_video(file); continue; }
+ if( file->tag.title_is("INDEX") ) { read_index(file); continue; }
+ if( file->tag.title_is("FOLDER") )
+ folder_no = file->tag.get_property("NUMBER", AW_MEDIA_FOLDER);