libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit ddbe32198104530774a770fad4a271e9436f13ef
parent d37615ada39c3caa8099787948e01e793e78ed92
Author: LRN <lrn1986@gmail.com>
Date:   Thu, 16 Aug 2012 10:41:54 +0000

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.

Diffstat:
Msrc/plugins/gstreamer_extractor.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/plugins/gstreamer_extractor.c b/src/plugins/gstreamer_extractor.c @@ -711,10 +711,8 @@ _source_setup (GstDiscoverer * dc, GstElement * source, PrivStruct * ps) if (ps->length > 0) { g_object_set (ps->source, "size", (gint64) ps->length, NULL); - gst_util_set_object_arg (G_OBJECT (ps->source), "stream-type", "random-access"); } - else - gst_util_set_object_arg (G_OBJECT (ps->source), "stream-type", "seekable"); + gst_util_set_object_arg (G_OBJECT (ps->source), "stream-type", "seekable"); /* configure the appsrc, we will push a buffer to appsrc when it needs more * data */