mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
resindvd: Add DVDFASTSTART env var to making some testing easier
This commit is contained in:
parent
243f58f2fc
commit
febe0c15d0
1 changed files with 7 additions and 1 deletions
|
@ -233,6 +233,12 @@ rsn_dvdsrc_class_init (resinDvdSrcClass * klass)
|
||||||
static void
|
static void
|
||||||
rsn_dvdsrc_init (resinDvdSrc * rsndvdsrc, resinDvdSrcClass * gclass)
|
rsn_dvdsrc_init (resinDvdSrc * rsndvdsrc, resinDvdSrcClass * gclass)
|
||||||
{
|
{
|
||||||
|
const gchar *envvar;
|
||||||
|
|
||||||
|
envvar = g_getenv ("DVDFASTSTART");
|
||||||
|
if (envvar)
|
||||||
|
rsndvdsrc->faststart = (strcmp (envvar, "0") && strcmp (envvar, "no"));
|
||||||
|
else
|
||||||
rsndvdsrc->faststart = DEFAULT_FASTSTART;
|
rsndvdsrc->faststart = DEFAULT_FASTSTART;
|
||||||
|
|
||||||
rsndvdsrc->device = g_strdup (DEFAULT_DEVICE);
|
rsndvdsrc->device = g_strdup (DEFAULT_DEVICE);
|
||||||
|
|
Loading…
Reference in a new issue