[Xineliboutput-cvslog] vdr-xineliboutput device.c,1.73,1.74
Brought to you by:
phintuka
From: Petri H. <phi...@us...> - 2009-03-19 08:40:48
|
Update of /cvsroot/xineliboutput/vdr-xineliboutput In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv12270 Modified Files: device.c Log Message: Pass header (PAT+PMT) to server for caching Index: device.c =================================================================== RCS file: /cvsroot/xineliboutput/vdr-xineliboutput/device.c,v retrieving revision 1.73 retrieving revision 1.74 diff -u -d -r1.73 -r1.74 --- device.c 16 Feb 2009 16:18:24 -0000 1.73 +++ device.c 19 Mar 2009 08:40:45 -0000 1.74 @@ -1134,6 +1134,8 @@ 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 @@ #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(); } |