From 0c0be3264d18599ca82d9d892ecb63468637b488 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Sun, 26 Apr 2009 21:29:27 +0100 Subject: resindvd: Add DVDFASTSTART env var to making some testing easier --- ext/resindvd/resindvdsrc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/resindvd/resindvdsrc.c b/ext/resindvd/resindvdsrc.c index 2ad11256..e058c692 100644 --- a/ext/resindvd/resindvdsrc.c +++ b/ext/resindvd/resindvdsrc.c @@ -233,7 +233,13 @@ rsn_dvdsrc_class_init (resinDvdSrcClass * klass) static void rsn_dvdsrc_init (resinDvdSrc * rsndvdsrc, resinDvdSrcClass * gclass) { - rsndvdsrc->faststart = DEFAULT_FASTSTART; + const gchar *envvar; + + envvar = g_getenv ("DVDFASTSTART"); + if (envvar) + rsndvdsrc->faststart = (strcmp (envvar, "0") && strcmp (envvar, "no")); + else + rsndvdsrc->faststart = DEFAULT_FASTSTART; rsndvdsrc->device = g_strdup (DEFAULT_DEVICE); rsndvdsrc->dvd_lock = g_mutex_new (); -- cgit v1.2.1