[vlc-devel] [PATCH 5/6] demux/adaptive: FakeEsOut: use mem-initializer-list in constructor
Filip Roséen
filip at atch.se
Thu May 18 17:07:35 CEST 2017
---
modules/demux/adaptive/plumbing/FakeESOut.cpp | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/modules/demux/adaptive/plumbing/FakeESOut.cpp b/modules/demux/adaptive/plumbing/FakeESOut.cpp
index 9d95758b47..75fdf3e481 100644
--- a/modules/demux/adaptive/plumbing/FakeESOut.cpp
+++ b/modules/demux/adaptive/plumbing/FakeESOut.cpp
@@ -32,10 +32,14 @@
using namespace adaptive;
FakeESOut::FakeESOut( es_out_t *es, CommandsQueue *queue )
+ : real_es_out( es )
+ , extrainfo( NULL )
+ , commandsqueue( queue )
+ , fakeesout( new es_out_t )
+ , timestamps_offset( 0 )
+ , timestamps_expected( 0 )
+ , timestamps_check_done( false )
{
- real_es_out = es;
- fakeesout = new es_out_t;
-
fakeesout->pf_add = esOutAdd_Callback;
fakeesout->pf_control = esOutControl_Callback;
fakeesout->pf_del = esOutDel_Callback;
@@ -43,12 +47,6 @@ FakeESOut::FakeESOut( es_out_t *es, CommandsQueue *queue )
fakeesout->pf_send = esOutSend_Callback;
fakeesout->p_sys = (es_out_sys_t*) this;
- commandsqueue = queue;
-
- timestamps_offset = 0;
- timestamps_expected = 0;
- timestamps_check_done = false;
- extrainfo = NULL;
vlc_mutex_init(&lock);
}
--
2.12.2
More information about the vlc-devel
mailing list