[UI] Preserve markers A/B and the current position when appending video

Started by eumagga0x2a, October 04, 2016, 09:12:10 PM

Previous topic - Next topic

eumagga0x2a

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.