Fix an assertion failure.

Patch committed upstream too.
This commit is contained in:
dcoppa 2010-11-25 07:31:49 +00:00
parent 098784cf26
commit 1ed842bd28
2 changed files with 14 additions and 2 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.29 2010/11/23 08:51:29 dcoppa Exp $
# $OpenBSD: Makefile,v 1.30 2010/11/25 07:31:49 dcoppa Exp $
COMMENT = GTK+/GNOME frontend for MPlayer
DISTNAME = gnome-mplayer-1.0.0
REVISION = 1
REVISION = 2
CATEGORIES = x11 multimedia
MAINTAINER = David Coppa <dcoppa@openbsd.org>

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_thread_c,v 1.5 2010/11/25 07:31:49 dcoppa Exp $
--- src/thread.c.orig Wed Nov 24 17:38:16 2010
+++ src/thread.c Wed Nov 24 17:38:40 2010
@@ -448,7 +448,7 @@ gboolean thread_reader(GIOChannel * source, GIOConditi
if (embed_window == 0)
idledata->cachepercent = 0.0;
- if (g_ascii_strncasecmp(vo, "gl2", strlen("gl2")) != 0) {
+ if (vo != NULL && g_ascii_strncasecmp(vo, "gl2", strlen("gl2")) != 0) {
cmd = g_strdup_printf("brightness %i\n", idledata->brightness);
send_command(cmd, TRUE);
g_free(cmd);