[vlc-commits] adaptive:fakeES: no need to initialize before es_format_Copy

Steve Lhomme git at videolan.org
Sun Jul 9 10:24:39 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Sun Jul  9 10:20:03 2017 +0200| [199193c6bd73fee67ebe47c0a878990d5f0cbb4b] | committer: Rémi Denis-Courmont

adaptive:fakeES: no need to initialize before es_format_Copy

--
replaces https://patches.videolan.org/patch/17293/

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 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 );
 }
 



More information about the vlc-commits mailing list