[vlc-devel] [PATCH 09/18] adaptive:fakeES: initialize the ES from the source category
Rémi Denis-Courmont
remi at remlab.net
Fri Jul 7 19:08:41 CEST 2017
Le keskiviikkona 5. heinäkuuta 2017, 17.00.23 EEST Steve Lhomme a écrit :
> ---
> modules/demux/adaptive/plumbing/FakeESOut.cpp | 2 +-
> modules/demux/adaptive/plumbing/FakeESOutID.cpp | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/modules/demux/adaptive/plumbing/FakeESOut.cpp
> b/modules/demux/adaptive/plumbing/FakeESOut.cpp index
> 781f2c8b6f..591e602232 100644
> --- a/modules/demux/adaptive/plumbing/FakeESOut.cpp
> +++ b/modules/demux/adaptive/plumbing/FakeESOut.cpp
> @@ -91,7 +91,7 @@ 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_Init( &fmtcopy, p_fmt->i_cat, 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..29ef239776 100644
> --- a/modules/demux/adaptive/plumbing/FakeESOutID.cpp
> +++ b/modules/demux/adaptive/plumbing/FakeESOutID.cpp
> @@ -32,7 +32,7 @@ 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_Init( &fmt, p_fmt->i_cat, 0 );
> es_format_Copy( &fmt, p_fmt );
> }
This was and remains pointless. es_format_Copy() discards the output content.
--
雷米‧德尼-库尔蒙
https://www.remlab.net/
More information about the vlc-devel
mailing list