~ubuntu-branches/ubuntu/utopic/totem-plugin-arte/utopic-proposed

« back to all changes in this revision

Viewing changes to cache.vala

  • Committer: Bazaar Package Importer
  • Author(s): Nicolas Delvaux
  • Date: 2011-04-10 11:38:30 UTC
  • Revision ID: james.westby@ubuntu.com-20110410113830-ew6ceisied3k8wyl
Tags: 0.9.2-3
* Build-Depends on valac-0.12 (LP: #756186)
  - Cherry pick relevant patchs from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
        try {
84
84
            var file_stream = file.create (FileCreateFlags.REPLACE_DESTINATION, null);
85
85
            var data_stream = new DataOutputStream (file_stream);
86
 
            data_stream.write (msg.response_body.data,
87
 
                    (ssize_t) msg.response_body.length, null);
 
86
            data_stream.write (msg.response_body.data);
88
87
 
89
88
        } catch (Error e) {
90
89
            GLib.error ("%s", e.message);
138
137
        }
139
138
 
140
139
        /* rescale it */
141
 
        var img_stream = new MemoryInputStream.from_data (msg.response_body.data,
142
 
                (ssize_t) msg.response_body.length, null);
 
140
        var img_stream = new MemoryInputStream.from_data (msg.response_body.data, null);
143
141
 
144
142
        try {
145
143
            /* original size: 720px × 406px */