diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-04-26 21:29:27 +0100 |
---|---|---|
committer | Dave Robillard <dave@drobilla.net> | 2009-05-03 12:03:19 -0400 |
commit | 0c0be3264d18599ca82d9d892ecb63468637b488 (patch) | |
tree | ab08329850ddd7d9f4522020767a288b1c1635c6 /ext | |
parent | 0d2115cee1d918332bfc08501c27b7c3b02711df (diff) | |
download | gst-plugins-bad-0c0be3264d18599ca82d9d892ecb63468637b488.tar.gz gst-plugins-bad-0c0be3264d18599ca82d9d892ecb63468637b488.tar.bz2 gst-plugins-bad-0c0be3264d18599ca82d9d892ecb63468637b488.zip |
resindvd: Add DVDFASTSTART env var to making some testing easier
Diffstat (limited to 'ext')
-rw-r--r-- | ext/resindvd/resindvdsrc.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 (); |