]> git.decadent.org.uk Git - videolink.git/commitdiff
Corrected length of background filename buffer. 0.2
authorBen Hutchings <ben@decadent.org.uk>
Sat, 12 Nov 2005 15:45:18 +0000 (15:45 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 2 Nov 2008 23:17:26 +0000 (23:17 +0000)
Worked around bogus error generated by imglib2.

webdvd.cpp

index 8e586e2d230fbc4d20aa6a1cca9fc99b5dbb87c3..4d951ee9120f5502b0bec78b4aedcc92e2c16012 100644 (file)
@@ -18,6 +18,7 @@
 #include <gtkmm/main.h>
 #include <gtkmm/window.h>
 
+#include <imglib2/ImageErrors.h>
 #include <nsGUIEvent.h>
 #include <nsIBoxObject.h>
 #include <nsIContent.h>
@@ -247,7 +248,10 @@ namespace
 
            try
            {
-               check(status);
+               // Check whether the load was successful, ignoring this
+               // pseudo-error.
+               if (status != NS_IMAGELIB_ERROR_LOAD_ABORTED)
+                   check(status);
 
                nsCOMPtr<nsIWebBrowser> browser(
                    browser_widget_.get_browser());
@@ -294,7 +298,7 @@ namespace
 
     void WebDvdWindow::save_screenshot()
     {
-       char filename[20];
+       char filename[25];
        std::sprintf(filename, "page_%06d_back.png", page_links_.size());
        Glib::RefPtr<Gdk::Window> window(get_window());
        assert(window);