[vlc-commits] demux: adaptative: remove unneeded hls temp var
Francois Cartegnie
git at videolan.org
Thu Aug 6 17:30:19 CEST 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Aug 2 01:47:31 2015 +0200| [20375e97f54d83d25b5d2082a47692ef427b1859] | committer: Francois Cartegnie
demux: adaptative: remove unneeded hls temp var
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=20375e97f54d83d25b5d2082a47692ef427b1859
---
modules/demux/hls/playlist/Tags.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/modules/demux/hls/playlist/Tags.cpp b/modules/demux/hls/playlist/Tags.cpp
index eb06500..32a54a3 100644
--- a/modules/demux/hls/playlist/Tags.cpp
+++ b/modules/demux/hls/playlist/Tags.cpp
@@ -69,7 +69,6 @@ std::vector<uint8_t> Attribute::hexSequence() const
std::pair<std::size_t,std::size_t> Attribute::getByteRange() const
{
- std::pair<std::size_t,std::size_t> ret;
std::size_t length = 0;
std::size_t offset = 0;
std::istringstream is(value);
@@ -85,8 +84,7 @@ std::pair<std::size_t,std::size_t> Attribute::getByteRange() const
}
}
- ret = std::make_pair(offset, length);
- return ret;
+ return std::make_pair(offset, length);
}
std::pair<int, int> Attribute::getResolution() const
More information about the vlc-commits
mailing list