Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: eumagga0x2a on October 04, 2016, 09:12:10 PM

Title: [UI] Preserve markers A/B and the current position when appending video
Post by: eumagga0x2a on October 04, 2016, 09:12:10 PM
Currently appending a video discards markers A/B and resets the current slider position to zero. I doubt there is any reason for doing this. The following patch preserves both the markers and the current position:

diff --git a/avidemux/common/gui_main.cpp b/avidemux/common/gui_main.cpp
index 1a73404..4e967b4 100644
--- a/avidemux/common/gui_main.cpp
+++ b/avidemux/common/gui_main.cpp
@@ -819,7 +819,7 @@ int A_appendVideo (const char *name)
     }

   ReSync ();
-  A_ResetMarkers();
+  GUI_setCurrentFrameAndTime();

   return 1;
}


No side effects found while testing a patched build.