[vlc-commits] demux: adaptive: don't declare ES type that can't be selected by core

Francois Cartegnie git at videolan.org
Thu Feb 25 09:55:40 UTC 2021


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb 25 10:05:37 2021 +0100| [19617f1061b57b07994403a45144a948502e27ce] | committer: Francois Cartegnie

demux: adaptive: don't declare ES type that can't be selected by core

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

 modules/demux/adaptive/Streams.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/demux/adaptive/Streams.cpp b/modules/demux/adaptive/Streams.cpp
index 46692e19ae..9594cba786 100644
--- a/modules/demux/adaptive/Streams.cpp
+++ b/modules/demux/adaptive/Streams.cpp
@@ -717,7 +717,11 @@ void AbstractStream::declaredCodecs()
     CodecDescriptionList descs;
     segmentTracker->getCodecsDesc(&descs);
     for(auto it = descs.cbegin(); it != descs.cend(); ++it)
-        fakeEsOut()->declareEs((*it)->getFmt());
+    {
+        const es_format_t *fmt = (*it)->getFmt();
+        if(fmt->i_cat != UNKNOWN_ES)
+            fakeEsOut()->declareEs(fmt);
+    }
 }
 
 FakeESOut::LockedFakeEsOut AbstractStream::fakeEsOut()



More information about the vlc-commits mailing list