Fix crash on working out hints for content with subtitles.
authorCarl Hetherington <cth@carlh.net>
Sun, 20 Dec 2020 22:16:06 +0000 (23:16 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 22 Dec 2020 01:37:53 +0000 (02:37 +0100)
Probably introduced in
cadca6e4f8c1d844f1b5fb9375023e627c674fa9

src/lib/reel_writer.cc

index 2bd732d5bfbd6aae0ce9800c385c285b411000ce..41de4481ed3e11e3d01cc340ef103850c95f4c4f 100644 (file)
@@ -155,7 +155,7 @@ ReelWriter::ReelWriter (
 
                _picture_asset->set_file (asset);
                _picture_asset_writer = _picture_asset->start_write (asset, _first_nonexistant_frame > 0);
-       } else {
+       } else if (!text_only) {
                /* We already have a complete picture asset that we can just re-use */
                /* XXX: what about if the encryption key changes? */
                if (film()->three_d()) {