diff options
author | methodus <methodus@web.de> | 2012-10-27 05:50:03 +0200 |
---|---|---|
committer | methodus <methodus@web.de> | 2012-10-27 05:50:03 +0200 |
commit | f998c951d2a67fd6cdff53c0bd3eef90560331e4 (patch) | |
tree | f247ea6c7e5db825a7c58de737e17593b524bd91 | |
parent | 4509269af55543c85653d9fd4da17d54c71deffb (diff) | |
download | vdr-plugin-upnp-f998c951d2a67fd6cdff53c0bd3eef90560331e4.tar.gz vdr-plugin-upnp-f998c951d2a67fd6cdff53c0bd3eef90560331e4.tar.bz2 |
Fixed file size type in dvbProfiler for recordings.
-rw-r--r-- | httptnt/resourceStreamer.ecpp | 2 | ||||
-rw-r--r-- | include/plugin.h | 6 | ||||
-rw-r--r-- | media/pluginManager.cpp | 2 | ||||
-rw-r--r-- | plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp | 2 |
4 files changed, 7 insertions, 5 deletions
diff --git a/httptnt/resourceStreamer.ecpp b/httptnt/resourceStreamer.ecpp index 9579fe6..ecb3eae 100644 --- a/httptnt/resourceStreamer.ecpp +++ b/httptnt/resourceStreamer.ecpp @@ -67,6 +67,8 @@ int doRequest(tnt::HttpReply reply, tnt::HttpRequest request, std::string object if(to <= 0 || to > contentLength) to = contentLength; length = to - from; hasRange = true; + + cerr << from << " - " << to << "/" << contentLength << endl; std::stringstream contentRangeHeader; contentRangeHeader << "bytes " << from << "-" << to << "/" << contentLength; diff --git a/include/plugin.h b/include/plugin.h index d267bcd..dfd1ab9 100644 --- a/include/plugin.h +++ b/include/plugin.h @@ -149,7 +149,7 @@ public: bool SetDuration(string duration); bool SetResolution(string resolution); bool SetBitrate(uint32_t bitrate); - bool SetSize(uint32_t size); + bool SetSize(size_t size); bool SetSampleFrequency(uint32_t sampleFrequency); bool SetBitsPerSample(uint32_t bitsPerSample); bool SetNrAudioChannels(uint32_t nrAudioChannels); @@ -160,7 +160,7 @@ public: string GetDuration() const { return duration; } string GetResolution() const { return resolution; } uint32_t GetBitrate() const { return bitrate; } - uint32_t GetSize() const { return size; } + size_t GetSize() const { return size; } uint32_t GetSampleFrequency() const { return sampleFrequency; } uint32_t GetBitsPerSample() const { return bitsPerSample; } uint32_t GetNrAudioChannels() const { return nrAudioChannels; } @@ -184,7 +184,7 @@ public: string duration; string resolution; uint32_t bitrate; - uint32_t size; + size_t size; uint32_t sampleFrequency; uint32_t bitsPerSample; uint32_t nrAudioChannels; diff --git a/media/pluginManager.cpp b/media/pluginManager.cpp index 8cde797..17ce69a 100644 --- a/media/pluginManager.cpp +++ b/media/pluginManager.cpp @@ -219,7 +219,7 @@ bool cMetadata::Resource::SetBitrate(uint32_t bitrate){ return true; } -bool cMetadata::Resource::SetSize(uint32_t size){ +bool cMetadata::Resource::SetSize(size_t size){ this->size = size; return true; } diff --git a/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp b/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp index e16a978..1a83f54 100644 --- a/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp +++ b/plugins/profiler/vdrDVBProfiler/dvbProfiler.cpp @@ -109,7 +109,7 @@ private: fclose(fd); int i = 1; - uint32_t size = 0; + size_t size = 0; sprintf(pFileNumber, "/%05d.ts", i); while(access(filename, F_OK) == 0){ |