[vlc-commits] demux: adaptive: reject UNKNOWN_ES
Francois Cartegnie
git at videolan.org
Mon Oct 10 16:07:15 CEST 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Oct 9 17:16:33 2016 +0200| [054dedf3c668973822a18d5bbf1de55b18361725] | committer: Francois Cartegnie
demux: adaptive: reject UNKNOWN_ES
As ES id is stripped and there's no real fmt
properties there's no way to recycle that ES.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=054dedf3c668973822a18d5bbf1de55b18361725
---
modules/demux/adaptive/plumbing/FakeESOut.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/demux/adaptive/plumbing/FakeESOut.cpp b/modules/demux/adaptive/plumbing/FakeESOut.cpp
index a8654e6..4bfeee5 100644
--- a/modules/demux/adaptive/plumbing/FakeESOut.cpp
+++ b/modules/demux/adaptive/plumbing/FakeESOut.cpp
@@ -278,6 +278,10 @@ void FakeESOut::recycle( FakeESOutID *id )
es_out_id_t * FakeESOut::esOutAdd_Callback(es_out_t *fakees, const es_format_t *p_fmt)
{
FakeESOut *me = (FakeESOut *) fakees->p_sys;
+
+ if( p_fmt->i_cat != VIDEO_ES && p_fmt->i_cat != AUDIO_ES && p_fmt->i_cat != SPU_ES )
+ return NULL;
+
/* Feed the slave demux/stream_Demux with FakeESOutID struct,
* we'll create real ES later on main demux on execution */
FakeESOutID *es_id = me->createNewID( p_fmt );
More information about the vlc-commits
mailing list