[vlc-commits] demux/adaptive: FakeEsOut: use mem-initializer-list in constructor
Filip Roséen
git at videolan.org
Thu May 18 21:09:14 CEST 2017
vlc | branch: master | Filip Roséen <filip at atch.se> | Thu May 18 17:07:35 2017 +0200| [48ab02e4a275b6fe10a852e35a0fc2cd44a69545] | committer: Jean-Baptiste Kempf
demux/adaptive: FakeEsOut: 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=48ab02e4a275b6fe10a852e35a0fc2cd44a69545
---
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);
}
More information about the vlc-commits
mailing list