Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hello all,
I've got a LG CU910 phone, and am running a video player application on it. The program will crash and reset the phone seemingly at random during the playback. I've checked for memory leaks, buffer overruns, without any luck.

I do have one possible clue. I'm playing audio data in CMX format, playing sections of audio in succession -- when I receive the MM_STATUS_DONE event, I free up the current IMedia object and create a new IMedia object, then set a callback using ISHELL_SetTimer() to another function to start playing the next section. When I switch to regular QCelp instead, things seem to work. So would there be something in CMX that would cause an application to crash sometimes?

Any insights will be greatly appreciated. Thanks!

d.

I suggest you to try this method:when you receive MM_STATUS_DONE , stop the media and release it. After a timer, recreate IMedia object, and start play .
Because the release time of video is longer than audio , so that's why you didn't meet same problem when qcp file is concerned.

I suggest you to try this method:when you receive MM_STATUS_DONE , stop the media and release it. After a timer, recreate IMedia object, and start play .
Because the release time of video is longer than audio , so that's why you didn't meet same problem when qcp file is concerned.

We need to know more about why the application is crashing. We may need to look at your code. Please feel free to email eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%63%6d%78%2e%63%6f%6e%74%61%63%74%40%71%75%61%6c%63%6f%6d%6d%2e%63%6f%6d%22%20%63%6c%61%73%73%3d%22%62%62%2d%65%6d%61%69%6c%22%3e%63%6d%78%2e%63%6f%6e%74%61%63%74%40%71%75%61%6c%63%6f%6d%6d%2e%63%6f%6d%3c%2f%61%3e%27%29%3b')) with further questions.

We need to know more about why the application is crashing. We may need to look at your code. Please feel free to email eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%63%6d%78%2e%63%6f%6e%74%61%63%74%40%71%75%61%6c%63%6f%6d%6d%2e%63%6f%6d%22%20%63%6c%61%73%73%3d%22%62%62%2d%65%6d%61%69%6c%22%3e%63%6d%78%2e%63%6f%6e%74%61%63%74%40%71%75%61%6c%63%6f%6d%6d%2e%63%6f%6d%3c%2f%61%3e%27%29%3b')) with further questions.