=?gb2312?q?=BB=D8=B8=B4=A3=BA=20Re:=20[Live-devel]=20About=20data=20flo
w?=
Ross Finlayson
finlayson at live.com
Mon Jun 13 14:03:35 PDT 2005
>Here doGetNextFrame(), the first time, it calls
>MPEG2TransportStreamFramer::doGetNextFrame(), the
>second time, it calls
>"ByteStreamFileSource::doGetNextFrame()",
That's correct, because "doGetNextFrame()" is being called *on different
objects* in each case.
>I am wondering, which parameter tells this
>doGetNextFrame() function in
>FramedSource::getNextFrame() to choose different
>virtual function implemented in class
>MPEG2TransportStreamFramer and class
>ByteStreamFileSource respectively?
It's the object (to the left of the "->") that determines this.
It sounds like you don't yet fully unserstand how C++ virtual functions
(for example, "FramedSource::doGetNextFrame()") work. I suggest that
review this.
(Unfortunately, basic C++ tutorials are generally off-topic for this
mailing list.)
Ross Finlayson
LIVE.COM
<http://www.live.com/>
More information about the live-devel
mailing list