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 ??
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 ??