Skip to content

Commit

Permalink
Fixed video rotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Mar 13, 2024
1 parent f434710 commit d608448
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions mrv2/lib/mrvGL/mrvTimelineViewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -952,9 +952,7 @@ namespace mrv
}

// Refresh media info panel if there's data window present
if (panel::imageInfoPanel && !p.videoData.empty() &&
!p.videoData[0].layers.empty() &&
p.videoData[0].layers[0].image)
if (panel::imageInfoPanel)
{
bool refresh = false;

Expand All @@ -966,18 +964,15 @@ namespace mrv

// If timeline has a Data Window (it is an OpenEXR)
// we also refresh the media info panel.
const auto& tags =
p.videoData[0].layers[0].image->getTags();

auto i = tags.find("Video Rotation");
if (i != tags.end())
auto i = p.tagData.find("Video Rotation");
if (i != p.tagData.end())
{
std::stringstream s(i->second);
s >> p.videoRotation;
}

i = tags.find("Data Window");
if (i != tags.end())
i = p.tagData.find("Data Window");
if (i != p.tagData.end())
refresh = true;

if (refresh)
Expand Down

0 comments on commit d608448

Please sign in to comment.