Compare commits

...

4 Commits

Author SHA1 Message Date
Bruno Herbelin
b6cedd0f8f Merge remote-tracking branch 'origin/beta' 2025-11-21 19:18:54 +01:00
brunoherbelin
f11e159c44 Add mouse over on sourece preview in side panel to show original source image 2025-11-19 23:47:40 +01:00
brunoherbelin
f9c14db284 typo in command flatpak 2025-11-19 21:29:48 +01:00
brunoherbelin
2a13cb9e68 BugFix Avoid reload media player on undo/redo 2025-11-19 21:28:11 +01:00
4 changed files with 14 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ If not already installed, install the builder and the flathub repository:
Install the runtime environments:
flatpak install org.freedesktop.Sdk/x86_64/25.08
flatpak install org.freedesktop.Platform/25.08
flatpak install org.freedesktop.Platform/x86_64/25.08
### 2. Build vimix flatpak

View File

@@ -432,8 +432,14 @@ void ImGuiVisitor::visit (Source& s)
}
// centered image
if (s.ready()) {
ImGui::SetCursorPos( ImVec2(pos.x + 0.5f * (preview_width-width), pos.y + 0.5f * (preview_height-height-space)) );
ImVec2 dpos = ImVec2(pos.x + 0.5f * (preview_width-width), pos.y + 0.5f * (preview_height-height-space));
ImGui::SetCursorPos( dpos );
ImGui::Image((void*)(uintptr_t) s.frame()->texture(), ImVec2(width, height));
if (ImGui::IsItemHovered()) {
ImGui::SetCursorPos( dpos );
ImGui::Image((void*)(uintptr_t) s.texture(), ImVec2(width, height));
ImGuiToolkit::ToolTip("Source original image");
}
} else {
ImGuiToolkit::PushFont(ImGuiToolkit::FONT_LARGE);
ImGui::SetCursorPos(

View File

@@ -1145,6 +1145,7 @@ void SessionLoader::visit (Source& s)
void SessionLoader::visit (MediaSource& s)
{
bool freshload = false;
// set uri
XMLElement* pathNode = xmlCurrent_->FirstChildElement("uri"); // TODO change to "path" but keep backward compatibility
if (pathNode) {
@@ -1162,6 +1163,7 @@ void SessionLoader::visit (MediaSource& s)
}
}
s.setPath(path);
freshload = true;
}
}
// ensures the source is initialized even if no valid path is given
@@ -1178,7 +1180,8 @@ void SessionLoader::visit (MediaSource& s)
s.mediaplayer()->setRate(1.0);
// add a callback to activate source play speed and rewind
s.call( new PlaySpeed( r ) );
s.call( new RePlay( ) );
if (freshload)
s.call( new RePlay( ) );
}
void SessionLoader::visit (SessionFileSource& s)

View File

@@ -471,7 +471,8 @@ void SourceControlWindow::Render()
mediaplayer_active_->timeline()->clearFading();
mediaplayer_active_->timeline()->clearGaps();
mediaplayer_active_->timeline()->clearFlags();
mediaplayer_active_->setVideoEffect("");
if (!mediaplayer_active_->videoEffect().empty() && mediaplayer_active_->videoEffectAvailable())
mediaplayer_active_->setVideoEffect("");
std::ostringstream oss;
oss << SystemToolkit::base_filename( mediaplayer_active_->filename() );
oss << ": Reset timeline";