JMF query
From: nsc (naunidh_at_gmail.com)
Date: 01/31/05
- Next message: Gaurav Agarwal: "url rewriting when the url contains parameters"
- Previous message: Thomas Schodt: "Re: How to add a string "XXXXXXXXXXXX" to a txt file?....@@"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 31 Jan 2005 02:40:24 -0800
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 ??
- Next message: Gaurav Agarwal: "url rewriting when the url contains parameters"
- Previous message: Thomas Schodt: "Re: How to add a string "XXXXXXXXXXXX" to a txt file?....@@"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]