diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-04-26 21:29:27 +0100 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-04-29 21:02:16 +0100 |
commit | febe0c15d0524c86efb9715597a79ab095d7d58d (patch) | |
tree | 3545918d76530ab9c7a76b5077bdf2815b77c0f1 | |
parent | 243f58f2fc107603a781678682cdfd8bd8570e2a (diff) | |
download | gst-plugins-bad-febe0c15d0524c86efb9715597a79ab095d7d58d.tar.gz gst-plugins-bad-febe0c15d0524c86efb9715597a79ab095d7d58d.tar.bz2 gst-plugins-bad-febe0c15d0524c86efb9715597a79ab095d7d58d.zip |
resindvd: Add DVDFASTSTART env var to making some testing easier
-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 (); |