modules/media/src/main/native/jfxmedia/platform/osx/QTKMediaPlayer.mm
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -320,13 +320,17 @@
long loadState = [(NSNumber*)[movie attributeForKey:QTMovieLoadStateAttribute] longValue];
NSError *loadError = (NSError*)[movie attributeForKey:QTMovieLoadStateErrorAttribute];
if (loadError) {
LOGGER_ERRORMSG(([[NSString stringWithFormat:@"Error loading QTMovie: %@\n", loadError] UTF8String]));
if (eventHandler) {
+ if (loadError.domain == NSOSStatusErrorDomain) {
+ eventHandler->SendPlayerMediaErrorEvent(ERROR_LOCATOR_CONNECTION_LOST);
+ } else {
eventHandler->SendPlayerMediaErrorEvent(ERROR_OSX_INIT);
}
}
+ }
if (!movieReady) {
if (loadState > QTMovieLoadStateLoaded) {
[blockSelf setMovieReady];
}