Change the broadcast string so V2 only recognises V2 servers (and vice versa).
[dcpomatic.git] / src / lib / dcpomatic_time.h
index b308e82b42baec709200c80cf29ccf2fc8b9dbc7..df9c46c7157651fff9759b8f6e342c18b563ce2f 100644 (file)
@@ -62,7 +62,7 @@ public:
 
        /* Explicit conversion from type O */
        Time (Time<O, S> d, FrameRateChange f);
-       
+
        Type get () const {
                return _t;
        }
@@ -144,7 +144,7 @@ public:
                   to a frame boundary at the start rather than the end.
                */
                int64_t ff = frames (r);
-               
+
                h = ff / (3600 * r);
                ff -= h * 3600 * r;
                m = ff / (60 * r);
@@ -173,7 +173,7 @@ public:
                return o.str ();
        }
 
-       
+
        static Time<S, O> from_seconds (double s) {
                return Time<S, O> (s * HZ);
        }
@@ -188,13 +188,17 @@ public:
                return Time<S, O> (1);
        }
 
+       static Time<S, O> min () {
+               return Time<S, O> (-INT64_MAX);
+       }
+
        static Time<S, O> max () {
                return Time<S, O> (INT64_MAX);
        }
-       
+
 private:
        friend struct dcptime_round_up_test;
-       
+
        Type _t;
        static const int HZ = 96000;
 };
@@ -219,7 +223,7 @@ class ContentTimePeriod
 {
 public:
        ContentTimePeriod () {}
-       
+
        ContentTimePeriod (ContentTime f, ContentTime t)
                : from (f)
                , to (t)