Merged 2279

This commit is contained in:
Moritz Bunkus 2004-10-03 18:10:57 +00:00
parent 76cd8b468a
commit ac9c2c71e8
3 changed files with 12 additions and 2 deletions

View File

@ -1694,9 +1694,10 @@ create_readers() {
}
if (!identifying) {
for (i = 0; i < files.size(); i++) {
for (i = 0; i < files.size(); i++)
files[i]->reader->create_packetizers();
}
for (i = 0; i < files.size(); i++)
files[i]->reader->check_track_ids_and_packetizers();
}
}

View File

@ -1314,6 +1314,13 @@ generic_reader_c::display_progress(bool) {
act_wchar = 0;
}
void
generic_reader_c::check_track_ids_and_packetizers() {
if (reader_packetizers.size() == 0)
mxwarn(FMT_FN "No tracks will be copied from this file. This usually "
"indicates a mistake in the command line.\n", ti->fname);
}
//
//--------------------------------------------------------------------

View File

@ -286,6 +286,8 @@ public:
virtual int add_packetizer(generic_packetizer_c *ptzr);
virtual void set_timecode_offset(int64_t offset);
virtual void check_track_ids_and_packetizers();
protected:
virtual bool demuxing_requested(char type, int64_t id);
};