diff options
Diffstat (limited to 'webkit/glue/plugins/plugin_stream.cc')
-rw-r--r-- | webkit/glue/plugins/plugin_stream.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/glue/plugins/plugin_stream.cc b/webkit/glue/plugins/plugin_stream.cc index bc12ace..a2b3980 100644 --- a/webkit/glue/plugins/plugin_stream.cc +++ b/webkit/glue/plugins/plugin_stream.cc @@ -25,7 +25,8 @@ PluginStream::~PluginStream() { bool PluginStream::Open(const std::string &mime_type, const std::string &headers, uint32 length, - uint32 last_modified) { + uint32 last_modified, + bool request_is_seekable) { headers_ = headers; NPP id = instance_->npp(); stream_.end = length; @@ -35,7 +36,7 @@ bool PluginStream::Open(const std::string &mime_type, stream_.notifyData = notify_data_; bool seekable_stream = false; - if (!headers_.empty()) { + if (request_is_seekable && !headers_.empty()) { stream_.headers = headers_.c_str(); if (headers_.find("Accept-Ranges: bytes") != std::string::npos) { seekable_stream = true; |