summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-12-22 23:35:23 +0000
committerCarl Hetherington <cth@carlh.net>2012-12-22 23:35:23 +0000
commite651d843c513e8dbf0967735ea702a3795ac321d (patch)
tree8fe8bc07b60d7de3d561c7d1e45e63429fb7baec
parentf5cc57f11946e1e269df25db434c5f8efe953a68 (diff)
A couple more little fixes to subtitle XML.
-rwxr-xr-xrun-tests.sh2
-rw-r--r--src/subtitle_asset.cc2
2 files changed, 3 insertions, 1 deletions
diff --git a/run-tests.sh b/run-tests.sh
index b6064db3..3c92dae0 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -53,6 +53,8 @@ for d in `find build/test/libdcp-test -mindepth 1 -maxdepth 1 -type d`; do
fi
done
+sed -i "s/DCP: build\/test/DCP: \.\./g" build/test/info2.log
+
diff -q build/test/info2.log ../libdcp-test/info.log
if [ "$?" != "0" ]; then
echo "FAIL: dcpinfo output from rewrite incorrect"
diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc
index 9ba85a43..c7051eae 100644
--- a/src/subtitle_asset.cc
+++ b/src/subtitle_asset.cc
@@ -469,7 +469,7 @@ SubtitleAsset::write_xml (ostream& s) const
a << "Script=\"normal\" Underlined=\"no\" Weight=\"normal\"";
}
- if (first ||
+ if (first || font_changed ||
(last_in != (*i)->in() ||
last_out != (*i)->out() ||
last_fade_up_time != (*i)->fade_up_time() ||