[Live-devel] Issue faced with JPEGVideo

Ryan Chong fantasychong at yahoo.com
Sun Jul 24 20:19:10 PDT 2005


Hi Ross, 

Thanks for the reply. I have tried that by adding the following code:
void JPEGVideoFileSource::doStopGettingFrames() {
        envir().taskScheduler().unscheduleDelayedTask(nextTask());
        nextTask() = NULL;
}

Then I found the problem that, when the stream is resume with the PLAY
command, there are a few seconds of video missing, normally more than 2
seconds. Is there anyway to overcome this issue?

Thanks.

Ryan


--- Ross Finlayson <finlayson at live.com> wrote:

> 
> >I am facing problem with the JPEGVideo (Source and
> >Sink). When I initialize the
> >OnDemandServerMediaSubsession  with the
> >reuseFirstSource set to True, and try to Pause the
> >stream, it will cause Segmentation Fault.
> >
> >My team mate and I traced the code, and found that
> >this happen after the MediaSink::stopPlaying() was
> >called.
> 
> Note that "MediaSink::stopPlaying()" calls the function 
> "FramedSource::stopGettingFrames()" on its input source.  This in
> turn 
> calls the virtual function "FramedSource::doStopGettingFrames()". 
> (See 
> "FramedSource.cpp")
> 
> Because - in your case - your input source has events (timer alarms) 
> pending when "MediaSink::stopPlaying()" is called, you must redefine
> the 
> virtual function "doStopGettingFrames()" - for your source class - to
> turn 
> off these pending timer alarms.  You can do this using
>          envir().taskScheduler().unscheduleDelayedTask( ... )
> 
> 
> 	Ross Finlayson
> 	LIVE.COM
> 	<http://www.live.com/>
> 
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live.com
> http://lists.live.com/mailman/listinfo/live-devel
> 



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


More information about the live-devel mailing list