3100faae5e
add new sub package swt built with java-openjdk support [release 1.4-2mamba;Sun Jan 16 2011]
49 lines
1.6 KiB
Diff
49 lines
1.6 KiB
Diff
--- src/org/gstreamer/interfaces/XOverlay.java 2009-12-28 16:03:37.000000000 +0100
|
|
+++ src/org/gstreamer/interfaces/XOverlay.java-gil 2010-04-29 18:15:26.000000000 +0200
|
|
@@ -23,7 +23,7 @@
|
|
|
|
import java.lang.reflect.Field;
|
|
|
|
-import org.eclipse.swt.SWT;
|
|
+//import org.eclipse.swt.SWT;
|
|
import org.gstreamer.Element;
|
|
|
|
import com.sun.jna.Native;
|
|
@@ -77,36 +77,6 @@
|
|
}
|
|
|
|
/**
|
|
- * Sets the native window for the {@link Element} to use to display video.
|
|
- *
|
|
- * @param window A native window to use to display video, or <tt>null</tt> to
|
|
- * stop using the previously set window.
|
|
- */
|
|
- public void setWindowID(org.eclipse.swt.widgets.Composite comp) {
|
|
- // Composite style must be embedded
|
|
- if (!Platform.isLinux() || comp == null || (comp.getStyle() | SWT.EMBEDDED) == 0) {
|
|
- GSTXOVERLAY_API.gst_x_overlay_set_xwindow_id(this, new NativeLong(0));
|
|
- return;
|
|
- }
|
|
- // TODO: Test on windows and mac
|
|
- int handle;
|
|
- try {
|
|
- Class<? extends org.eclipse.swt.widgets.Composite> compClass = comp.getClass();
|
|
- Field embedHandleField = compClass.getField("embeddedHandle");
|
|
- handle = embedHandleField.getInt(comp);
|
|
- GSTXOVERLAY_API.gst_x_overlay_set_xwindow_id(this, new NativeLong(handle));
|
|
- } catch (IllegalArgumentException e) {
|
|
- e.printStackTrace();
|
|
- } catch (IllegalAccessException e) {
|
|
- e.printStackTrace();
|
|
- } catch (SecurityException e) {
|
|
- e.printStackTrace();
|
|
- } catch (NoSuchFieldException e) {
|
|
- e.printStackTrace();
|
|
- }
|
|
- }
|
|
-
|
|
- /**
|
|
* Tell an overlay that it has been exposed. This will redraw the current frame
|
|
* in the drawable even if the pipeline is PAUSED.
|
|
*/
|