[Live-devel] MPEG2TransportFileServerMediaSubsession seekStream ...
Massimo Zito
zmax.linkedin at gmail.com
Mon Jul 9 02:12:35 PDT 2007
Hi Ross,
when I send a seek ( RTSP ) for a TS file ( handled by
MPEG2TransportFileServerMediaSubsession ), MPEG2TransportStreamFramer
doesn't estimate TS packet duration correctly ... I have found a workaround
...
*** live/liveMedia/include/MPEG2TransportStreamFramer.hh 2007-07-01
11:16:05.000000000 +0200
--- live_new/liveMedia/include/MPEG2TransportStreamFramer.hh 2007-07-09
11:38:50.000000000 +0200
***************
*** 40,45 ****
--- 40,47 ----
void changeInputSource(FramedSource* newInputSource) { fInputSource =
newInputSource; }
+ void clearPidStatusTable();
+
protected:
MPEG2TransportStreamFramer(UsageEnvironment& env, FramedSource*
inputSource);
// called only by createNew()
*** live/liveMedia/MPEG2TransportStreamFramer.cpp 2007-07-01 11:16:
05.000000000 +0200
--- live_new/liveMedia/MPEG2TransportStreamFramer.cpp 2007-07-09 11:43:
09.000000000 +0200
***************
*** 70,75 ****
--- 70,83 ----
delete fPIDStatusTable;
}
+ void MPEG2TransportStreamFramer::clearPidStatusTable()
+ {
+ PIDStatus* pidStatus;
+ while ((pidStatus = (PIDStatus*)fPIDStatusTable->RemoveNext()) != NULL)
{
+ delete pidStatus;
+ }
+ }
+
void MPEG2TransportStreamFramer::doGetNextFrame() {
// Read directly from our input source into our client's buffer:
fFrameSize = 0;
*** live/liveMedia/MPEG2TransportFileServerMediaSubsession.cpp 2007-07-01
11:16:05.000000000 +0200
--- live_new/liveMedia/MPEG2TransportFileServerMediaSubsession.cpp
2007-07-09 11:41:48.000000000 +0200
***************
*** 275,280 ****
--- 275,282 ----
// Note: We assume that we're asked to seek only in normal
// (i.e., non trick play) mode, so we don't seek within the trick
// play source (if any).
+
+ fFramer->clearPidStatusTable();
}
}
Is this work correct ?
Thank you
Massimo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20070709/90c530aa/attachment.html
More information about the live-devel
mailing list