News:

--

Main Menu

[editor] fix a warning in removeChunk

Started by eumagga0x2a, October 01, 2016, 10:28:25 PM

Previous topic - Next topic

eumagga0x2a

Currently removeChunk complains about being unable to get the starting point even if it is getting the segment and offset for the end point which fails. A trivial patch is attached.

diff --git a/avidemux/common/ADM_editor/src/ADM_segment.cpp b/avidemux/common/ADM_editor/src/ADM_segment.cpp
index 2209c88..71739e5 100644
--- a/avidemux/common/ADM_editor/src/ADM_segment.cpp
+++ b/avidemux/common/ADM_editor/src/ADM_segment.cpp
@@ -574,7 +574,7 @@ bool        ADM_EditorSegment::removeChunk(uint64_t from, uint64_t to)
     }
     if(false==convertLinearTimeToSeg( to,&endSeg,&endOffset))
     {
-        ADM_warning("Cannot get starting point (%" PRIu64" ms\n",from/1000);
+        ADM_warning("Cannot get end point (%" PRIu64" ms\n",to/1000);
         return false;
     }

eumagga0x2a