[vlc-commits] demux/adaptive: FakeESOutID: use mem-initializer-list in constructor

Filip Roséen git at videolan.org
Thu May 18 21:09:10 CEST 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Thu May 18 17:07:34 2017 +0200| [89293e91111c856f40ddf570ff08dd962308ea32] | committer: Jean-Baptiste Kempf

demux/adaptive: FakeESOutID: use mem-initializer-list in constructor

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=89293e91111c856f40ddf570ff08dd962308ea32
---

 modules/demux/adaptive/plumbing/FakeESOutID.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/demux/adaptive/plumbing/FakeESOutID.cpp b/modules/demux/adaptive/plumbing/FakeESOutID.cpp
index 4adf9bf3e4..30b5eba19e 100644
--- a/modules/demux/adaptive/plumbing/FakeESOutID.cpp
+++ b/modules/demux/adaptive/plumbing/FakeESOutID.cpp
@@ -27,13 +27,13 @@
 
 using namespace adaptive;
 
-FakeESOutID::FakeESOutID( FakeESOut *fakeesout_, const es_format_t *p_fmt )
+FakeESOutID::FakeESOutID( FakeESOut *fakeesout, const es_format_t *p_fmt )
+    : fakeesout( fakeesout )
+    , p_real_es_id( NULL )
+    , pending_delete( false )
 {
-    p_real_es_id = NULL;
-    fakeesout = fakeesout_;
     es_format_Init( &fmt, 0, 0 );
     es_format_Copy( &fmt, p_fmt );
-    pending_delete = false;
 }
 
 FakeESOutID::~FakeESOutID()



More information about the vlc-commits mailing list