[vlc-commits] demux: ts: reorder switch cases

Francois Cartegnie git at videolan.org
Mon Aug 4 06:33:18 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Aug  4 12:03:36 2014 +0900| [cf8207882e3392e24dcc9f08e5d6e96f806d9e82] | committer: Francois Cartegnie

demux: ts: reorder switch cases

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

 modules/demux/ts.c |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 1bcd9ad..05d764a 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -4215,15 +4215,17 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_pmt )
         {
             switch( p_es->i_type )
             {
+            case 0x06:
+                /* Handle PES private data */
+                PMTSetupEs0x06( p_demux, pid, p_es );
+                break;
+            /* All other private or reserved types */
+            case 0x0f:
             case 0x10:
             case 0x11:
             case 0x12:
-            case 0x0f:
                 PMTSetupEsISO14496( p_demux, pid, prg, p_es );
                 break;
-            case 0x06:
-                PMTSetupEs0x06( p_demux, pid, p_es );
-                break;
             case 0x83:
                 /* LPCM (audio) */
                 PMTSetupEs0x83( p_pmt, pid );



More information about the vlc-commits mailing list