Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context

2008-11-19 Thread Horst Weglanz
lopment & use <[EMAIL PROTECTED]> Sent: Friday, November 14, 2008 3:47:28 PM Subject: Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context Thank you, I added a static hook to schedule another *doGetNextFrame()* call and it's working as expected. Except for one thing which seems

Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context

2008-11-14 Thread Horst Weglanz
LIVE555 Streaming Media - development & use <[EMAIL PROTECTED]> Sent: Thursday, November 13, 2008 7:13:20 PM Subject: Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context > Is there maybe a way to directly schedule a call to *doGetNextFrame()* in the > event loop since this is no

Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context

2008-11-13 Thread Ross Finlayson
Is there maybe a way to directly schedule a call to *doGetNextFrame()* in the event loop since this is not a static function or what would be the alternative The alternative is to write a static member function that then calls "doGetNextFrame()", and have "scheduleDelayedTask()" arrange to cal

Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context

2008-11-13 Thread Horst Weglanz
- Original Message From: Ross Finlayson <[EMAIL PROTECTED]> To: LIVE555 Streaming Media - development & use <[EMAIL PROTECTED]> Sent: Thursday, November 13, 2008 9:22:24 AM Subject: Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context > | if ( isFrameAvailable(

Re: [Live-devel] doGetNextFrame() timing in mpeg2ts context

2008-11-13 Thread Ross Finlayson
| if ( isFrameAvailable() ) | { |processFrame(); | } | else | { |usleep(10); |nextTask() = envir().taskScheduler().scheduleDelayedTask(0,(TaskFunc*)FramedSource::afterGetting, this); | } The big problem with this code is that if "isFrameAvailable()" returns False, then you end up

[Live-devel] doGetNextFrame() timing in mpeg2ts context

2008-11-13 Thread Horst Weglanz
Hello I have a question regarding whether I use liveMedia or mpeg2ts correctly or not. I want to mux video frames to mpeg2ts, since I needed another interface than the once already included, I build my own *MySource* derived from *FramedSource*. In there is the appropriate *doGetNextFrame()* me