changeset 20508:f74eb19ac068

a previous commit introduced a bug that prevented tables from being parsed in the feeding phase; removed useless debugs
author nicodvb
date Sun, 29 Oct 2006 22:02:10 +0000
parents d03b71ab8b65
children fd92e89d0a4e
files libmpdemux/demux_ts.c
diffstat 1 files changed, 4 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c	Sun Oct 29 21:52:26 2006 +0000
+++ b/libmpdemux/demux_ts.c	Sun Oct 29 22:02:10 2006 +0000
@@ -2775,11 +2775,6 @@
 					continue;
 				}
 			}
-			else
-			{
-				stream_skip(stream, buf_size+junk);
-				continue;
-			}
 
 			//IS IT TIME TO QUEUE DATA to the dp_packet?
 			if(is_start && (dp != NULL))
@@ -2788,7 +2783,7 @@
 			}
 
 
-			if(*dp == NULL)
+			if(dp && *dp == NULL)
 			{
 				if(*buffer_size > MAX_PACK_BYTES)
 					*buffer_size = MAX_PACK_BYTES;
@@ -2801,8 +2796,6 @@
 				}
 				mp_msg(MSGT_DEMUX, MSGL_DBG2, "CREATED DP(%d)\n", *buffer_size);
 			}
-
-			mp_msg(MSGT_DEMUX, MSGL_DBG2, "NOW PACKET_SIZE = %d, DP_OFFSET = %d\n", *buffer_size, *dp_offset);
 		}
 
 
@@ -2868,6 +2861,9 @@
 			}
 		}
 
+		if(!probe && !dp)
+			continue;
+
 		if(is_start)
 		{
 			uint8_t *lang = NULL;