Skip to content

Commit a79ed3d

Browse files
committed
Update example code
Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
1 parent d3d5713 commit a79ed3d

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,17 @@ C++:
111111

112112
#include "opentimelineio/timeline.h"
113113

114-
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
115-
116114
void
117115
main()
118116
{
119-
otio::SerializableObject::Retainer<otio::Timeline> tl(
120-
dynamic_cast<otio::Timeline*>(
121-
otio::Timeline::from_json_file("taco.otio")
117+
OTIO_NS::SerializableObject::Retainer<OTIO_NS::Timeline> tl(
118+
dynamic_cast<OTIO_NS::Timeline*>(
119+
OTIO_NS::Timeline::from_json_file("taco.otio")
122120
)
123121
);
124122
for (const auto& cl : tl->find_clips())
125123
{
126-
otio::RationalTime dur = cl->duration();
124+
OTIO_NS::RationalTime dur = cl->duration();
127125
std::cout << "Name: " << cl->name() << " [";
128126
std::cout << dur.value() << "/" << dur.rate() << "]" << std::endl;
129127
}

0 commit comments

Comments
 (0)