JMF query

N

nsc

The same is also posted at Java forums, but it seems the JMF forum is a
ghosttown, so here it is again, with some modifications

Hi,

I am facing a peculiar problem here, where in my JMF code the
configureComplete event is called before the processor is configured.

Here is what happens:

public void configureComplete( ConfigureCompleteEvent event )
{
if (!event.getSourceController().equals(mProcessor)) {
System.out.println("Invalid processor");
return;
}

while(!(mProcessor.getState()==javax.media.Processor.Configured))
{
Thread.sleep(50);
System.out.println("Processor not configured in configure complete
!!!");
}
//.......do some othe stuff, but I never reach here.

}

Now acording to the JMF API this should never happen, i.e.
configureComplete should not be called with Processor not being in the
configured state. In my case I get "Processor not configured in
configure complete !!!" and that to repeatedly.

This does not happen always but at few instances, hence I sspect this
to be some race condition within JMF API or something more sinister !
Any Comments, Suggestions ??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top