[vlc-commits] [Git][videolan/vlc][3.0.x] demux: ts: fix user_pmt selection regression

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Tue Jul 6 14:16:14 UTC 2021



Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC


Commits:
8937674b by Francois Cartegnie at 2021-07-06T12:29:07+00:00
demux: ts: fix user_pmt selection regression

(cherry picked from commit b725288e1fe1fde6ee9c2a11e060eb85185b9824)

- - - - -


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
=====================================
@@ -2073,6 +2073,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/8937674b29486d6b470c31fc1ebf5f4ed9f715ec

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




More information about the vlc-commits mailing list