Skip to content

Commit db96b64

Browse files
darbyjohnstonreinecke
authored andcommitted
Fix DEFAULT_EPSILON_s visiblity
Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
1 parent 3a635fa commit db96b64

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/opentime/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ set(OPENTIME_HEADER_FILES
1313
add_library(opentime ${OTIO_SHARED_OR_STATIC_LIB}
1414
errorStatus.cpp
1515
rationalTime.cpp
16+
timeRange.cpp
1617
${OPENTIME_HEADER_FILES})
1718

1819
add_library(OTIO::opentime ALIAS opentime)

src/opentime/timeRange.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
// Copyright Contributors to the OpenTimelineIO project
33

44
#include "opentime/timeRange.h"
5+
6+
namespace opentime { namespace OPENTIME_VERSION_NS {
7+
8+
const double DEFAULT_EPSILON_s = 1.0 / (2 * 192000.0);
9+
10+
}} // namespace opentime::OPENTIME_VERSION_NS

src/opentime/timeRange.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace opentime { namespace OPENTIME_VERSION_NS {
1616
/// a resolution of half a frame at 192kHz. The value can be changed in the future if
1717
/// necessary, due to higher sampling rates or some other kind of numeric tolerance
1818
/// detected in the library.
19-
OPENTIME_API constexpr double DEFAULT_EPSILON_s = 1.0 / (2 * 192000.0);
19+
OPENTIME_API extern const double DEFAULT_EPSILON_s;
2020

2121
/// @brief This class represents a time range defined by a start time and duration.
2222
///

0 commit comments

Comments
 (0)