On 05/14/2014 06:00 PM, Ted Felix wrote: > I took a quick glance at Sonic Visualiser's FileSource, and that > appears to be the way to go.
Indeed. I've just brought over the latest from Sonic Visualiser, and it works perfectly. Well, almost. There is a small bug that prevents ftp from working, but I already had a fix for that. At any rate, I'll commit shortly. Chris, the ftp bug is in isAvailable() and should affect Sonic Visualiser. Here's my fixed version (minus the debug output). bool FileSource::isAvailable() { waitForStatus(); bool available = m_ok; // If everything's ok and we have a status code if (m_ok && m_lastStatus) { // We have success for any 2xx status code. available = (m_lastStatus / 100 == 2); } return available; } An alternative would be to make sure successful ftp transfers set m_lastStatus to 200. This might be a better solution. Ted. ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Rosegarden-devel mailing list Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel