[vlc-commits] mux: mp4: alloc late tracks in non fragmented mode

Francois Cartegnie git at videolan.org
Wed Oct 23 13:20:59 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Oct 21 15:54:53 2019 +0200| [ab56eb164246277dda2672f47272ce39eb49e69d] | committer: Francois Cartegnie

mux: mp4: alloc late tracks in non fragmented mode

As we have proper edit list support, we can allow late streams.
Should solve issues with user doing transcoding without tuning
sout-mux-caching

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

 modules/mux/mp4/mp4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/mux/mp4/mp4.c b/modules/mux/mp4/mp4.c
index 1807e0a48c..a32673cd10 100644
--- a/modules/mux/mp4/mp4.c
+++ b/modules/mux/mp4/mp4.c
@@ -443,7 +443,7 @@ static int Control(sout_mux_t *p_mux, int i_query, va_list args)
     {
     case MUX_CAN_ADD_STREAM_WHILE_MUXING:
         pb_bool = va_arg(args, bool *);
-        *pb_bool = false;
+        *pb_bool = (p_mux->pf_mux == Mux);
         return VLC_SUCCESS;
 
     case MUX_GET_ADD_STREAM_WAIT:



More information about the vlc-commits mailing list