Register the available track IDs for the MPEG PS reader so that no warning is printed for correct --xtracks arguments.

This commit is contained in:
Moritz Bunkus 2005-01-05 20:34:38 +00:00
parent 4573595412
commit 6dd43f653f
2 changed files with 9 additions and 0 deletions

View File

@ -827,6 +827,14 @@ mpeg_ps_reader_c::create_packetizers() {
create_packetizer(i);
}
void
mpeg_ps_reader_c::add_available_track_ids() {
int i;
for (i = 0; i < tracks.size(); i++)
available_track_ids.push_back(i);
}
file_status_e
mpeg_ps_reader_c::read(generic_packetizer_c *,
bool) {

View File

@ -102,6 +102,7 @@ public:
virtual void identify();
virtual void create_packetizer(int64_t id);
virtual void create_packetizers();
virtual void add_available_track_ids();
virtual void found_new_stream(int id);