Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: eumagga0x2a on October 01, 2016, 10:28:25 PM

Title: [editor] fix a warning in removeChunk
Post by: eumagga0x2a on October 01, 2016, 10:28:25 PM
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;
     }
Title: Re: [editor] fix a warning in removeChunk
Post by: eumagga0x2a on October 03, 2016, 05:20:23 PM
I gently push this one.