diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2009-01-08 12:42:18 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2009-01-08 12:42:18 +0000 |
commit | 672051c5eb79ca9acaa6f2d056322d2ad0f3ea31 (patch) | |
tree | 1555e14719db3e7ed20f54d7b428c53df8a572f1 /ext/resindvd/resindvdbin.c | |
parent | acd634eafa71e5688ba707962612357470f6c97c (diff) | |
download | gst-plugins-bad-672051c5eb79ca9acaa6f2d056322d2ad0f3ea31.tar.gz gst-plugins-bad-672051c5eb79ca9acaa6f2d056322d2ad0f3ea31.tar.bz2 gst-plugins-bad-672051c5eb79ca9acaa6f2d056322d2ad0f3ea31.zip |
ext/resindvd/: Add support for time based seeking.
Original commit message from CVS:
* ext/resindvd/resindvdbin.c:
* ext/resindvd/resindvdsrc.c:
* ext/resindvd/resindvdsrc.h:
* ext/resindvd/rsnaudiomunge.c:
Add support for time based seeking.
Make setting dvd:// reset to the default device.
Make the 'audiomunge' element send any new segment start before
the 'gap filler' buffer it generates, and any segment closes
after.
Fixes: #566957
Diffstat (limited to 'ext/resindvd/resindvdbin.c')
-rw-r--r-- | ext/resindvd/resindvdbin.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/resindvd/resindvdbin.c b/ext/resindvd/resindvdbin.c index ac50fb14..c96ff944 100644 --- a/ext/resindvd/resindvdbin.c +++ b/ext/resindvd/resindvdbin.c @@ -230,7 +230,10 @@ rsn_dvdbin_uri_set_uri (GstURIHandler * handler, const gchar * uri) */ if (g_str_has_prefix (uri, "dvd://")) { g_free (dvdbin->device); - dvdbin->device = g_strdup (uri + 6); + if (strlen (uri) > 6) + dvdbin->device = g_strdup (uri + 6); + else + dvdbin->device = g_strdup (DEFAULT_DEVICE); } #if 0 /* |