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

« back to all changes in this revision

Viewing changes to cygnal/libamf/amf_msg.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
// amf.cpp:  AMF (Action Message Format) rpc marshalling, for Gnash.
2
2
// 
3
 
//   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
4
 
//   2011 Free Software Foundation, Inc
 
3
//   Copyright (C) 2005, 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
175
175
    msg->size = ntohl((*(boost::uint32_t *)tmpptr));
176
176
 
177
177
    if (msg->target.empty()) {
178
 
        log_error("AMF Message \'target\' field missing!");
 
178
        log_error(_("AMF Message \'target\' field missing!"));
179
179
    }
180
180
    if (msg->response.empty()) {
181
 
        log_error("AMF Message \'reply\' field missing!");
 
181
        log_error(_("AMF Message \'reply\' field missing!"));
182
182
    }
183
183
    if (msg->size == 0) {
184
 
        log_error("AMF Message \'size\' field missing!");
 
184
        log_error(_("AMF Message \'size\' field missing!"));
185
185
    } else {
186
186
        msg->size = size;
187
187
    }
228
228
            }
229
229
        }
230
230
    } catch(std::exception& e) {
231
 
        log_error("Error parsing the AMF packet: \n\t%s", e.what());
 
231
        log_error(_("Error parsing the AMF packet: \n\t%s"), e.what());
232
232
    }
233
233
        
234
234
    return header;