summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-02-26 20:54:31 +0100
committerJohns <johns98@gmx.net>2012-02-26 20:54:31 +0100
commit51eb720265546e5874b458e037c50d1cb29746d6 (patch)
treea3938450cddece2d92b4c3f7331d461e455a8ebd
parente977007dd37ba7b67b78079602105c6b6c2da6c6 (diff)
downloadvdr-plugin-softhddevice-51eb720265546e5874b458e037c50d1cb29746d6.tar.gz
vdr-plugin-softhddevice-51eb720265546e5874b458e037c50d1cb29746d6.tar.bz2
VideoSetFullscreen needs X11 connection.
-rw-r--r--video.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video.c b/video.c
index 0e7d5b5..92d3b7e 100644
--- a/video.c
+++ b/video.c
@@ -9144,6 +9144,10 @@ void VideoSetFullscreen(int onoff)
{
xcb_client_message_event_t event;
+ if (!XlibDisplay) { // needs running connection
+ return;
+ }
+
memset(&event, 0, sizeof(event));
event.response_type = XCB_CLIENT_MESSAGE;
event.format = 32;