From a2279700adabd5d99eee41c8a729ab354269ebc8 Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Wed, 21 Oct 2015 10:43:32 +0200 Subject: [PATCH] Updated gstreamer dependency --- .../mediarenderer/MediaRendererController.java | 13 ++++++------- pom.xml | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/mediarenderer/src/main/java/org/fourthline/cling/mediarenderer/MediaRendererController.java b/mediarenderer/src/main/java/org/fourthline/cling/mediarenderer/MediaRendererController.java index af45ffc6b..ffff10002 100644 --- a/mediarenderer/src/main/java/org/fourthline/cling/mediarenderer/MediaRendererController.java +++ b/mediarenderer/src/main/java/org/fourthline/cling/mediarenderer/MediaRendererController.java @@ -38,6 +38,7 @@ import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; +import java.util.Arrays; import java.util.logging.Level; public class MediaRendererController extends MainController { @@ -118,14 +119,12 @@ public void run() { MediaRenderer.APP.log(Level.INFO, "Initializing GStreamer backend and registering MediaRenderer device..."); try { - fullscreenCheckbox.setSelected( - args.length != 1 || !args[0].equals(ARG_USE_WINDOWS) - ); - // Pick a display method - DisplayHandler displayHandler = args.length == 1 && args[0].equals(ARG_USE_WINDOWS) - ? new WindowedDisplayHandler() - : new FullscreenDisplayHandler(); + boolean fullscreen = args == null || !Arrays.asList(args).contains(ARG_USE_WINDOWS); + fullscreenCheckbox.setSelected(fullscreen); + DisplayHandler displayHandler = fullscreen + ? new FullscreenDisplayHandler() + : new WindowedDisplayHandler(); // Initialize the GStreamer backend (this also sets log level to WARNING for org.gstreamer) Gst.init(MediaRenderer.APPNAME, args); diff --git a/pom.xml b/pom.xml index 755ff9146..ba48cdcd6 100644 --- a/pom.xml +++ b/pom.xml @@ -95,7 +95,7 @@ 3.0 1.7.12 3.2.5 - 1.4 + 1.5 2.0.12 1.1.10.Final 3.19.0-GA