Run of fresh-releases for libxdf

Try this locally (using silver-platter):

debian-svp new-upstream libxdf 

Merge these changes:

git pull https://janitor.debian.net/git/libxdf fresh-releases/main

Summary

Merged new upstream version: 0.99 (was: 0.98+dfsg).

Diff

diff --git a/README.md b/README.md
index a23819d..1738871 100644
--- a/README.md
+++ b/README.md
@@ -84,4 +84,4 @@ SigViewer Online Repository is [here](repository/Updates.xml).
 
 ## <a name="support"></a>Support
 
-[Email author](mailto:yida.lin@outlook.com) or report a new [issue](https://github.com/Yida-Lin/libxdf/issues).
+[Email author](mailto:yl3842@columbia.edu) or report a new [issue](https://github.com/Yida-Lin/libxdf/issues).
diff --git a/debian/changelog b/debian/changelog
index 9f7c730..d1d7245 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libxdf (0.99-1) UNRELEASED; urgency=medium
+
+  * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Thu, 27 Jun 2019 03:02:11 +0000
+
 libxdf (0.98+dfsg-1) unstable; urgency=medium
 
   * Initial release (Closes: #919474)
diff --git a/debian/patches/soversion.patch b/debian/patches/soversion.patch
index 4312312..0abb25e 100644
--- a/debian/patches/soversion.patch
+++ b/debian/patches/soversion.patch
@@ -2,8 +2,10 @@ Author: Andreas Tille <tille@debian.org>
 Last-Update: Wed, 16 Jan 2019 11:23:20 +0100
 Description: Add SOVERSION
 
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
+Index: libxdf/CMakeLists.txt
+===================================================================
+--- libxdf.orig/CMakeLists.txt
++++ libxdf/CMakeLists.txt
 @@ -25,6 +25,7 @@ set(SOURCES
  
  add_library(xdf-static STATIC ${SOURCES})
diff --git a/debian/patches/use_debian_packaged_pugixml.patch b/debian/patches/use_debian_packaged_pugixml.patch
index c079c09..c6b2797 100644
--- a/debian/patches/use_debian_packaged_pugixml.patch
+++ b/debian/patches/use_debian_packaged_pugixml.patch
@@ -2,8 +2,10 @@ Author: Andreas Tille <tille@debian.org>
 Last-Update: Wed, 16 Jan 2019 11:23:20 +0100
 Description: Use Debian packaged pugixml
 
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
+Index: libxdf/CMakeLists.txt
+===================================================================
+--- libxdf.orig/CMakeLists.txt
++++ libxdf/CMakeLists.txt
 @@ -6,9 +6,6 @@ project(libxdf)
  set(SOURCES
      xdf.h
@@ -24,8 +26,10 @@ Description: Use Debian packaged pugixml
  set_property(TARGET xdf-static xdf-shared PROPERTY CXX_STANDARD 11)
  set_property(TARGET xdf-static xdf-shared PROPERTY C_STANDARD 99)
  set_target_properties(xdf-static PROPERTIES OUTPUT_NAME xdf)
---- a/xdf.cpp
-+++ b/xdf.cpp
+Index: libxdf/xdf.cpp
+===================================================================
+--- libxdf.orig/xdf.cpp
++++ libxdf/xdf.cpp
 @@ -20,7 +20,7 @@
  
  #include <iostream>
diff --git a/xdf.cpp b/xdf.cpp
index 7cd7af9..fa238df 100644
--- a/xdf.cpp
+++ b/xdf.cpp
@@ -612,10 +612,7 @@ void Xdf::syncTimeStamps()
                 }
             }
 
-            if (this->streams[elem.second].clock_times[k] < elem.first.second)
-            {
-                elem.first.second += this->streams[elem.second].clock_values[k];
-            }
+            elem.first.second += this->streams[elem.second].clock_values[k]; // apply the last offset value to the timestamp; if there hasn't yet been an offset value take the first recorded one
         }
     }
 
@@ -832,14 +829,18 @@ void Xdf::findMajSR()
         }
     }
 
-    //search the srateMap to see which sample rate has the most channels
-    int index (std::distance(srateMap.begin(),
-                             std::max_element(srateMap.begin(),srateMap.end(),
-                                            [] (const std::pair<sampRate, numChannel> &largest,
-                                            const std::pair<sampRate, numChannel> &first)
-                                            { return largest.second < first.second; })));
-
-    majSR = srateMap[index].first; //the sample rate that has the most channels
+    if(srateMap.size() > 0){
+        //search the srateMap to see which sample rate has the most channels
+        int index (std::distance(srateMap.begin(),
+                                 std::max_element(srateMap.begin(),srateMap.end(),
+                                                [] (const std::pair<sampRate, numChannel> &largest,
+                                                const std::pair<sampRate, numChannel> &first)
+                                                { return largest.second < first.second; })));
+
+        majSR = srateMap[index].first; //the sample rate that has the most channels
+    } else {
+        majSR = 0; //if there are no streams with a fixed sample reate
+    }
 }
 
 void Xdf::calcTotalChannel()

Full worker log Full build log