From 135f440ab956507b5b4fb6cccabc5089f36e53d7 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 23 Sep 2003 17:03:58 +0000 Subject: [PATCH] Re-enabled selecting the compression scheme for VobSubs. --- src/p_vobsub.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/p_vobsub.cpp b/src/p_vobsub.cpp index 85b86b5a3..63850ff80 100644 --- a/src/p_vobsub.cpp +++ b/src/p_vobsub.cpp @@ -43,10 +43,10 @@ vobsub_packetizer_c::vobsub_packetizer_c(generic_reader_c *nreader, idx_data = (unsigned char *)safememdup(nidx_data, nidx_data_size); idx_data_size = nidx_data_size; - if (nti->compression == COMPRESSION_UNSPECIFIED) + if (ti->compression == COMPRESSION_UNSPECIFIED) compression_type = ncompression_type; else - compression_type = nti->compression; + compression_type = ti->compression; compressed_type = ncompressed_type; raw_size = 0; @@ -55,6 +55,9 @@ vobsub_packetizer_c::vobsub_packetizer_c(generic_reader_c *nreader, set_track_type(track_subtitle); + compressor = NULL; + decompressor = NULL; + compression = "no"; if (compression_type != compressed_type) { compression = NULL;