Cosmetics: indentation fix indentation broken by last two demuxer.c commits

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20325 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-10-20 19:36:59 +00:00
parent d42038edb9
commit 2b13b3a6c8
1 changed files with 25 additions and 25 deletions

View File

@ -664,28 +664,28 @@ if (file_format) {
demuxer = new_demuxer(stream,demuxer_desc->type,audio_id,video_id,dvdsub_id,filename); demuxer = new_demuxer(stream,demuxer_desc->type,audio_id,video_id,dvdsub_id,filename);
if (demuxer_desc->check_file) if (demuxer_desc->check_file)
fformat = demuxer_desc->check_file(demuxer); fformat = demuxer_desc->check_file(demuxer);
if (force || !demuxer_desc->check_file) if (force || !demuxer_desc->check_file)
fformat = demuxer_desc->type; fformat = demuxer_desc->type;
if (fformat != 0) { if (fformat != 0) {
if (fformat == demuxer_desc->type) { if (fformat == demuxer_desc->type) {
demuxer_t *demux2 = demuxer; demuxer_t *demux2 = demuxer;
// Move messages to demuxer detection code? // Move messages to demuxer detection code?
mp_msg(MSGT_DEMUXER, MSGL_INFO, MSGTR_Detected_XXX_FileFormat, demuxer_desc->shortdesc); mp_msg(MSGT_DEMUXER, MSGL_INFO, MSGTR_Detected_XXX_FileFormat, demuxer_desc->shortdesc);
file_format = demuxer_desc->type = fformat; file_format = demuxer_desc->type = fformat;
if (!demuxer->desc->open || (demux2 = demuxer->desc->open(demuxer))) { if (!demuxer->desc->open || (demux2 = demuxer->desc->open(demuxer))) {
demuxer = demux2; demuxer = demux2;
goto dmx_open; goto dmx_open;
}
} else {
// Format changed after check, recurse
free_demuxer(demuxer);
return demux_open_stream(stream, fformat, force,
audio_id, video_id, dvdsub_id, filename);
} }
} } else {
// Check failed for forced demuxer, quit // Format changed after check, recurse
free_demuxer(demuxer); free_demuxer(demuxer);
return NULL; return demux_open_stream(stream, fformat, force,
audio_id, video_id, dvdsub_id, filename);
}
}
// Check failed for forced demuxer, quit
free_demuxer(demuxer);
return NULL;
} }
} }
@ -713,8 +713,8 @@ for (i = 0; (demuxer_desc = demuxer_list[i]); i++) {
file_format = DEMUXER_TYPE_UNKNOWN; file_format = DEMUXER_TYPE_UNKNOWN;
} }
} }
free_demuxer(demuxer); free_demuxer(demuxer);
demuxer = NULL; demuxer = NULL;
} }
} }
@ -758,12 +758,12 @@ for (i = 0; (demuxer_desc = demuxer_list[i]); i++) {
file_format = DEMUXER_TYPE_UNKNOWN; file_format = DEMUXER_TYPE_UNKNOWN;
} }
} }
free_demuxer(demuxer); free_demuxer(demuxer);
demuxer = NULL; demuxer = NULL;
} }
} }
return NULL; return NULL;
//====== File format recognized, set up these for compatibility: ========= //====== File format recognized, set up these for compatibility: =========
dmx_open: dmx_open: