Add encryption flag to video state identifier.
authorCarl Hetherington <cth@carlh.net>
Mon, 11 Nov 2013 10:36:43 +0000 (10:36 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 11 Nov 2013 10:36:43 +0000 (10:36 +0000)
src/lib/film.cc

index 650163efebe174b1e810f960869bfdb27ad46d6c..eab91c7d2b26dc343f8fe7c733cf6a1186ce4fec 100644 (file)
@@ -151,6 +151,12 @@ Film::video_identifier () const
          << "_" << scaler()->id()
          << "_" << j2k_bandwidth();
 
+       if (encrypted ()) {
+               s << "_E";
+       } else {
+               s << "_P";
+       }
+
        if (_interop) {
                s << "_I";
        } else {