From 2eb31492aee9536bc2022e10707347b8db48cffa Mon Sep 17 00:00:00 2001 From: phintuka Date: Thu, 19 Mar 2009 08:40:45 +0000 Subject: Pass header (PAT+PMT) to server for caching --- device.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'device.c') diff --git a/device.c b/device.c index 44556592..c542a896 100644 --- a/device.c +++ b/device.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: device.c,v 1.73 2009-02-16 16:18:24 phintuka Exp $ + * $Id: device.c,v 1.74 2009-03-19 08:40:45 phintuka Exp $ * */ @@ -1134,6 +1134,8 @@ int cXinelibDevice::PlayTs(const uchar *Data, int Length, bool VideoOnly) m_PatPmtParser.ParsePat(Data + PayloadOffset, Length - PayloadOffset); #endif LOGMSG("Got PAT: PMT pid = %d", m_PatPmtParser.PmtPid()); + if (m_server) + m_Server->SetHeader(Data, Length, true); PlayAny(Data, Length); } else if (Pid == m_PatPmtParser.PmtPid()) { #if VDRVERSNUM >= 10704 @@ -1143,6 +1145,8 @@ int cXinelibDevice::PlayTs(const uchar *Data, int Length, bool VideoOnly) #endif m_h264 = (m_PatPmtParser.Vtype() == 0x1b); /* ISO_14496_PART10_VIDEO */ LOGMSG("Got PMT packet, h264 = %d", m_h264?1:0); + if (m_server) + m_Server->SetHeader(Data, Length); PlayAny(Data, Length); TsBufferFlush(); } -- cgit v1.2.3