Use the source packetizers' compressor. For some reason creating a new one doesn't work...

This commit is contained in:
Moritz Bunkus 2004-11-14 18:26:15 +00:00
parent 299a18e31d
commit 1461b515a8

View File

@ -990,15 +990,11 @@ generic_packetizer_c::connect(generic_packetizer_c *src) {
htrack_type = src->htrack_type;
htrack_default_duration = src->htrack_default_duration;
huid = src->huid;
if (hcompression != src->hcompression) {
if (compressor != NULL) {
delete compressor;
compressor = NULL;
}
hcompression = src->hcompression;
if (hcompression != COMPRESSION_NONE)
compressor = compression_c::create(hcompression);
}
if (compressor != NULL)
delete compressor;
hcompression = src->hcompression;
compressor = src->compressor;
src->compressor = NULL;
last_cue_timecode = src->last_cue_timecode;
correction_timecode_offset = 0;
if (htrack_type != track_subtitle)