]> git.sesse.net Git - vlc/blobdiff - modules/demux/ts.c
Don't print a message a malloc failed.
[vlc] / modules / demux / ts.c
index 3ca12958d10d0bcc1649047a922b41145346608e..f491ca59350529c84aaf6b8d2d74bae5d9f1a6cb 100644 (file)
@@ -101,11 +101,11 @@ static void Close ( vlc_object_t * );
 /* TODO
  * - Rename "extra pmt" to "user pmt"
  * - Update extra pmt description
- *      pmt_pid[:pmt_number]=pid_description[,pid_description]
+ *      pmt_pid[:pmt_number][=pid_description[,pid_description]]
  *      where pid_description could take 3 forms:
  *          1. pid:pcr (to force the pcr pid)
  *          2. pid:stream_type
- *          3. pid:type:fourcc where type=(video|audio|spu)
+ *          3. pid:type=fourcc where type=(video|audio|spu)
  */
 #define PMT_TEXT N_("Extra PMT")
 #define PMT_LONGTEXT N_( \
@@ -941,13 +941,13 @@ static int DemuxFile( demux_t *p_demux )
         if( p_sys->buffer[i_pos] != 0x47 )
         {
             msg_Warn( p_demux, "lost sync" );
-            while( !p_demux->b_die && (i_pos < i_data) )
+            while( vlc_object_alive (p_demux) && (i_pos < i_data) )
             {
                 i_pos++;
                 if( p_sys->buffer[i_pos] == 0x47 )
                     break;
             }
-            if( !p_demux->b_die )
+            if( vlc_object_alive (p_demux) )
                 msg_Warn( p_demux, "sync found" );
         }
 
@@ -1052,7 +1052,7 @@ static int Demux( demux_t *p_demux )
             msg_Warn( p_demux, "lost synchro" );
             block_Release( p_pkt );
 
-            while( !p_demux->b_die )
+            while( vlc_object_alive (p_demux) )
             {
                 const uint8_t *p_peek;
                 int i_peek, i_skip = 0;