From 199193c6bd73fee67ebe47c0a878990d5f0cbb4b Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Sun, 9 Jul 2017 10:20:03 +0200 Subject: [PATCH] adaptive:fakeES: no need to initialize before es_format_Copy MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit -- replaces https://patches.videolan.org/patch/17293/ Signed-off-by: RĂ©mi Denis-Courmont --- modules/demux/adaptive/plumbing/FakeESOut.cpp | 1 - modules/demux/adaptive/plumbing/FakeESOutID.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/modules/demux/adaptive/plumbing/FakeESOut.cpp b/modules/demux/adaptive/plumbing/FakeESOut.cpp index 781f2c8b6f..3d85fa3387 100644 --- a/modules/demux/adaptive/plumbing/FakeESOut.cpp +++ b/modules/demux/adaptive/plumbing/FakeESOut.cpp @@ -91,7 +91,6 @@ void FakeESOut::setExtraInfoProvider( ExtraFMTInfoInterface *extra ) FakeESOutID * FakeESOut::createNewID( const es_format_t *p_fmt ) { es_format_t fmtcopy; - es_format_Init( &fmtcopy, 0, 0 ); es_format_Copy( &fmtcopy, p_fmt ); fmtcopy.i_group = 0; /* Always ignore group for adaptive */ fmtcopy.i_id = -1; diff --git a/modules/demux/adaptive/plumbing/FakeESOutID.cpp b/modules/demux/adaptive/plumbing/FakeESOutID.cpp index 30b5eba19e..73076a2773 100644 --- a/modules/demux/adaptive/plumbing/FakeESOutID.cpp +++ b/modules/demux/adaptive/plumbing/FakeESOutID.cpp @@ -32,7 +32,6 @@ FakeESOutID::FakeESOutID( FakeESOut *fakeesout, const es_format_t *p_fmt ) , p_real_es_id( NULL ) , pending_delete( false ) { - es_format_Init( &fmt, 0, 0 ); es_format_Copy( &fmt, p_fmt ); } -- 2.11.4.GIT