[Live-devel] TS stream not resumed correctly after paused

choujs qiujianshu at cnc-labs.com
Thu Jul 24 03:45:03 PDT 2008


Hi,

I try to use media server to stream my TS file, and found that
the stream can not be resumed correctly after paused. That is,
when resume, the speed of packet transmit become very slow. I
have traced into the code, and found the problem may be in the 
function MPEG2TransportStreamFramer::doStopGettingFrames().
In that function, fTSPacketCount is change to 0, but not fTSPCRCount.
Then in MPEG2TransportStreamFramer::updateTSPacketDurationEstimate(),
when caculate meanPCRPeriod, the value is always less than 1.0, because
fTSPacketCount may less than fTSPCRCount at that time.
I think this may be a bug, is it?


More information about the live-devel mailing list