| Index: webkit/glue/plugins/plugin_stream_url.cc
|
| ===================================================================
|
| --- webkit/glue/plugins/plugin_stream_url.cc (revision 22262)
|
| +++ webkit/glue/plugins/plugin_stream_url.cc (working copy)
|
| @@ -44,16 +44,18 @@
|
| const std::string& headers,
|
| uint32 expected_length,
|
| uint32 last_modified,
|
| - bool request_is_seekable,
|
| - bool* cancel) {
|
| + bool request_is_seekable) {
|
| bool opened = Open(mime_type,
|
| headers,
|
| expected_length,
|
| last_modified,
|
| request_is_seekable);
|
| if (!opened) {
|
| + CancelRequest();
|
| instance()->RemoveStream(this);
|
| - *cancel = true;
|
| + } else {
|
| + if (id_ > 0)
|
| + instance()->webplugin()->SetDeferResourceLoading(id_, false);
|
| }
|
| }
|
|
|
| @@ -62,8 +64,11 @@
|
| if (!open())
|
| return;
|
|
|
| - if (length > 0)
|
| + if (length > 0) {
|
| Write(const_cast<char*>(buffer), length, data_offset);
|
| + if (id_ > 0)
|
| + instance()->webplugin()->SetDeferResourceLoading(id_, false);
|
| + }
|
| }
|
|
|
| void PluginStreamUrl::DidFinishLoading() {
|
|
|