< prev index next >

modules/javafx.media/src/main/java/com/sun/media/jfxmediaimpl/NativeMediaPlayer.java

Print this page
rev 11235 : imported patch 13.patch

*** 1,7 **** /* ! * Copyright (c) 2010, 2018, 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 --- 1,7 ---- /* ! * Copyright (c) 2010, 2019, 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
*** 1409,1418 **** --- 1409,1429 ---- } finally { disposeLock.unlock(); } } + @Override + public boolean isErrorEventCached() { + synchronized (cachedErrorEvents) { + if (cachedErrorEvents.isEmpty()) { + return false; + } else { + return true; + } + } + } + //************************************************************************** //***** Non-JNI methods called by the native layer. These methods are called //***** from the native layer via the invocation API. Their purpose is to //***** dispatch certain events to the Java layer. Each of these methods //***** posts an event on the <code>EventQueueThread</code> which in turn
< prev index next >