Slow motion clips: don't mix clip state with strobe param from older project files

parent 80b983fa
......@@ -1944,7 +1944,7 @@ void ClipItem::updateState(const QString &id, int aIndex, int vIndex, PlaylistSt
m_clipState = PlaylistState::Original;
if (id.startsWith(QLatin1String("slowmotion"))) {
m_clipState = (PlaylistState::ClipState) id.section(":", -1).toInt();
m_clipState = id.count(QLatin1Char(':')) == 4 ? (PlaylistState::ClipState) id.section(":", -1).toInt() : PlaylistState::Original;
return;
}
if (id.endsWith(QLatin1String("_audio"))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment