summaryrefslogtreecommitdiffstats
path: root/ext/resindvd/resindvdbin.c
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2009-01-08 12:42:18 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2009-01-08 12:42:18 +0000
commit672051c5eb79ca9acaa6f2d056322d2ad0f3ea31 (patch)
tree1555e14719db3e7ed20f54d7b428c53df8a572f1 /ext/resindvd/resindvdbin.c
parentacd634eafa71e5688ba707962612357470f6c97c (diff)
downloadgst-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.c5
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
/*