diff options
author | LRN <lrn1986@gmail.com> | 2012-08-16 10:41:54 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2012-08-16 10:41:54 +0000 |
commit | ddbe32198104530774a770fad4a271e9436f13ef (patch) | |
tree | e0fa2c14792a8f91d2fe42c9f170fc08a629a1ac | |
parent | d37615ada39c3caa8099787948e01e793e78ed92 (diff) | |
download | libextractor-ddbe32198104530774a770fad4a271e9436f13ef.tar.gz libextractor-ddbe32198104530774a770fad4a271e9436f13ef.zip |
Treat all sources as seekable, not random-access
While we *might* be able to seek over the source randomly,
that does NOT change the content. Turns out, discoverer performs abysmally bad
on video streams dumped into a file when in random-access mode.
-rw-r--r-- | src/plugins/gstreamer_extractor.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/gstreamer_extractor.c b/src/plugins/gstreamer_extractor.c index f1f666c..73231bf 100644 --- a/src/plugins/gstreamer_extractor.c +++ b/src/plugins/gstreamer_extractor.c | |||
@@ -711,10 +711,8 @@ _source_setup (GstDiscoverer * dc, GstElement * source, PrivStruct * ps) | |||
711 | if (ps->length > 0) | 711 | if (ps->length > 0) |
712 | { | 712 | { |
713 | g_object_set (ps->source, "size", (gint64) ps->length, NULL); | 713 | g_object_set (ps->source, "size", (gint64) ps->length, NULL); |
714 | gst_util_set_object_arg (G_OBJECT (ps->source), "stream-type", "random-access"); | ||
715 | } | 714 | } |
716 | else | 715 | gst_util_set_object_arg (G_OBJECT (ps->source), "stream-type", "seekable"); |
717 | gst_util_set_object_arg (G_OBJECT (ps->source), "stream-type", "seekable"); | ||
718 | 716 | ||
719 | /* configure the appsrc, we will push a buffer to appsrc when it needs more | 717 | /* configure the appsrc, we will push a buffer to appsrc when it needs more |
720 | * data */ | 718 | * data */ |