[Bug 749690] splitfilesrc: Implement binary search in find_part_for_offset

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sun May 24 08:03:14 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=749690

--- Comment #12 from Jimmy Ohn <yongjin.ohn at lge.com> ---
(In reply to Jan Schmidt from comment #8)
> QtDemux is storing an array of actual QtDemuxSamples directly, so
> sizeof(QtDemuxSample) is correct there.
> 
> splitfilesrc is storing an array of pointers to GstFileParts - so sizeof
> (GstFilePart *)
> 
> If you're just testing with one file, you'll never exercise that code. It
> only runs when switching to a different file, so you need at least 2.

@Jan Schmidt
If I change from GstFilePart to GstFilePart *, It's not working. 
Here is the error message.

[jhbuild] yongjinohn at ubuntu:~/testmovie$ gst-launch-1.0 playbin
uri="splitfile:///home/yongjinohn/testmovie/Gossip1x01_*"
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstSplitFileSrc:source:
Could not perform seek on resource.
Additional debug info:
gstsplitfilesrc.c(514): gst_split_file_src_create ():
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstSplitFileSrc:source:
Seek to 18446744073698017280 in /home/yongjinohn/testmovie/Gossip1x01_al failed
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

If we use GstFilePart type, It's working for me.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list