Always add -CCAP to ISDCF names if there are ccaps.
authorCarl Hetherington <cth@carlh.net>
Mon, 11 Sep 2023 22:35:39 +0000 (00:35 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 11 Sep 2023 22:35:39 +0000 (00:35 +0200)
src/lib/film.cc

index 2fa720b029969b254b9b40b21dea7ca3abdadfa5..daa88282d755cfd8b6e9f3d3b4c9f576de9ee5da 100644 (file)
@@ -979,14 +979,15 @@ Film::isdcf_name (bool if_created_now) const
                }
 
                isdcf_name += "-" + lang;
-               if (ccap) {
-                       isdcf_name += "-CCAP";
-               }
        } else {
                /* No subtitles */
                isdcf_name += "-XX";
        }
 
+       if (ccap) {
+               isdcf_name += "-CCAP";
+       }
+
        if (_release_territory) {
                auto territory = _release_territory->subtag();
                isdcf_name += "_" + to_upper (territory);