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

Ross Finlayson finlayson at live555.com
Thu Jul 24 04:41:40 PDT 2008


>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?

Yes, quite possibly.

Does adding
	fTSPCRCount = 0;
to "MPEG2TransportStreamFramer::doStopGettingFrames()" overcome your problem?
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list