mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Merged 2279
This commit is contained in:
parent
76cd8b468a
commit
ac9c2c71e8
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
|
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user