Be more tolerant to missing values or errors in io_config()
[ardour.git] / libs / ardour / resampled_source.cc
index 04eecf0dee9eebadd93a1991aff0e5fbe5d09694..24eb12ad23bf0b2f206348e96354f5688b4e0331 100644 (file)
@@ -21,7 +21,7 @@
 #include "ardour/resampled_source.h"
 #include "pbd/failed_constructor.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace PBD;
@@ -81,7 +81,7 @@ ResampledImportableSource::read (Sample* output, framecnt_t nframes)
                _src_data.input_frames = source->read (_input, bs);
 
                /* The last read will not be a full buffer, so set end_of_input. */
-               if ((framecnt_t) _src_data.input_frames < bs) {
+               if ((size_t) _src_data.input_frames < bs) {
                        _end_of_input = true;
                }