[vlc-commits] [Git][videolan/vlc][master] demux: ts: fix user_pmt selection regression

François Cartegnie (@fcartegnie) gitlab at videolan.org
Sat Jul 3 22:31:14 UTC 2021



François Cartegnie pushed to branch master at VideoLAN / VLC


Commits:
b725288e by Francois Cartegnie at 2021-07-03T21:17:30+00:00
demux: ts: fix user_pmt selection regression

- - - - -


2 changed files:

- modules/demux/mpeg/ts.c
- modules/demux/mpeg/ts_psi.c


Changes:

=====================================
modules/demux/mpeg/ts.c
=====================================
@@ -76,6 +76,9 @@ static void Close ( vlc_object_t * );
  *          1. pid:pcr (to force the pcr pid)
  *          2. pid:stream_type
  *          3. pid:type=fourcc where type=(video|audio|spu)
+ *   Ex: Program 1 on pid 8190 with hevc on pid 289, aac on pid 305
+ *       and pcr on 305
+ *      "8190:1=289:video=hevc,305:pcr,305:audio=mp4a"
  */
 #define PMT_TEXT N_("Extra PMT")
 #define PMT_LONGTEXT N_( \


=====================================
modules/demux/mpeg/ts_psi.c
=====================================
@@ -2238,6 +2238,8 @@ int UserPmt( demux_t *p_demux, const char *psz_fmt )
     }
 
     ARRAY_APPEND( GetPID(p_sys, 0)->u.p_pat->programs, pmtpid );
+    ARRAY_APPEND( p_sys->programs, pmtpid->i_pid );
+    p_sys->b_default_selection = true;
 
     psz = strchr( psz, '=' );
     if( psz )



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b725288e1fe1fde6ee9c2a11e060eb85185b9824

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b725288e1fe1fde6ee9c2a11e060eb85185b9824
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list