[vlc-commits] demux: adaptative: fix uninitialized variables (cid #1313824)
Tristan Matthews
git at videolan.org
Fri Jul 31 12:32:32 CEST 2015
vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Fri Jul 31 06:20:42 2015 -0400| [49a05843e99a5818a23d00e03e1f1a3bb9e6127d] | committer: Tristan Matthews
demux: adaptative: fix uninitialized variables (cid #1313824)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=49a05843e99a5818a23d00e03e1f1a3bb9e6127d
---
modules/demux/adaptative/playlist/Url.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/demux/adaptative/playlist/Url.cpp b/modules/demux/adaptative/playlist/Url.cpp
index 102baa7..56c8611 100644
--- a/modules/demux/adaptative/playlist/Url.cpp
+++ b/modules/demux/adaptative/playlist/Url.cpp
@@ -99,9 +99,8 @@ std::string Url::toString(size_t index, const BaseRepresentation *rep) const
}
Url::Component::Component(const std::string & str, const MediaSegmentTemplate *templ_)
+ : component(str), templ(templ_), b_scheme(false), b_dir(false)
{
- component = str;
- templ = templ_;
if(!component.empty())
{
b_dir = (component[component.length()-1]=='/');
More information about the vlc-commits
mailing list