[Problem][TNINE-5249] Music player crashes with certain audio file format
[Cause & Measure]
Cause : Exception was not handled thrown by Tizen.Multimedia.Player.Stop method
Measure : Exception thrown by Tizen.Multimedia.Player.Stop method properly handled
Change-Id: I6f408be482daaf41d7bd2bacbaf543527a9cf858
Signed-off-by: Md. Farhan Mahtab/NC eXperience Group /SRBD/Engineer/Samsung Electronics <farhan.m1@samsung.com>
{
if(ValidatePlayerState(PlayerValidationState.Stop))
{
- player.Stop();
+ try
+ {
+ player.Stop();
+ }
+ catch(ObjectDisposedException e)
+ {
+ Tizen.Log.Debug(AppConstants.LogTag, "Object disposed exception: " + e.Message);
+ }
+ catch(InvalidOperationException e)
+ {
+ Tizen.Log.Debug(AppConstants.LogTag, "Invalid operation exception: " + e.Message);
+ }
+ catch(Exception e)
+ {
+ Tizen.Log.Debug(AppConstants.LogTag, "Exception : " + e.Message);
+ }
}
}