~ubuntu-branches/ubuntu/saucy/gnash/saucy-proposed

« back to all changes in this revision

Viewing changes to libbase/GnashImage.cpp

  • Committer: Package Import Robot
  • Author(s): Micah Gersten
  • Date: 2012-03-04 03:19:06 UTC
  • mfrom: (1.1.18) (3.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20120304031906-p6q5rnb0xhgpof7o
Tags: 0.8.10-3ubuntu1
* Merge from Debian testing (FFe: LP: #940876), remaining changes:
  - Use mozilla-flashplugin as the alternative for now
  - Change xulrunner-dev build dep to firefox-dev
* Drop the plugin API porting patch, this has been fixed upstream
  - drop debian/patches*
* Drop the following change as we want Adobe's player to take priority
  if it's installed
  - Set alternative priority to 50 so that it matches Adobe Flash's priority

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// Image.cpp: image data class for Gnash.
2
2
// 
3
 
//   Copyright (C) 2006, 2007, 2008, 2009, 2010,
4
 
//   2011 Free Software Foundation, Inc
 
3
//   Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012
 
4
//   Free Software Foundation, Inc
5
5
// 
6
6
// This program is free software; you can redistribute it and/or modify
7
7
// it under the terms of the GNU General Public License as published by
176
176
            outChannel = JpegOutput::create(out, width, height, quality);
177
177
            break;
178
178
        default:
179
 
            log_error("Requested to write image as unsupported filetype");
 
179
            log_error(_("Requested to write image as unsupported filetype"));
180
180
            break;
181
181
    }
182
182
 
232
232
                im.reset(new ImageRGBA(width, height));
233
233
                break;
234
234
            default:
235
 
                log_error("Invalid image returned");
 
235
                log_error(_("Invalid image returned"));
236
236
                return im;
237
237
        }
238
238
    }
240
240
        // This should be caught here because ~JpegInput can also
241
241
        // throw an exception on stack unwinding and this confuses
242
242
        // remote catchers.
243
 
        log_error("Out of memory while trying to create %dx%d image",
 
243
        log_error(_("Out of memory while trying to create %dx%d image"),
244
244
                width, height);
245
245
        return im;
246
246
    }