diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2018-12-05 20:01:35 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2018-12-05 20:01:35 +0000 |
| commit | d87795831c2eecca3b3cf0a1d70bcc90bcfe05b1 (patch) | |
| tree | c8e36cb2714246aee7382241d4bf70f784fee0a2 /src/plugins/Transports/http/httpstreamreader.h | |
| parent | ade1c826f9bccf77e76b47f83609ea253a537892 (diff) | |
| download | qmmp-d87795831c2eecca3b3cf0a1d70bcc90bcfe05b1.tar.gz qmmp-d87795831c2eecca3b3cf0a1d70bcc90bcfe05b1.tar.bz2 qmmp-d87795831c2eecca3b3cf0a1d70bcc90bcfe05b1.zip | |
http: reduced number of allocations
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8491 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Transports/http/httpstreamreader.h')
| -rw-r--r-- | src/plugins/Transports/http/httpstreamreader.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/Transports/http/httpstreamreader.h b/src/plugins/Transports/http/httpstreamreader.h index aefda863b..ebb0a657e 100644 --- a/src/plugins/Transports/http/httpstreamreader.h +++ b/src/plugins/Transports/http/httpstreamreader.h @@ -44,6 +44,7 @@ struct HttpStreamData { char *buf; size_t buf_fill; + size_t buf_size; QString content_type; bool aborted; QHash <QString, QByteArray> header; @@ -105,7 +106,7 @@ private: QString m_title; bool m_ready; bool m_meta_sent; - size_t m_buffer_size; + size_t m_prebuffer_size; QTextCodec *m_codec; DownloadThread *m_thread; HTTPInputSource *m_parent; |
