After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 776559 - adaptivedemux: Snap seek to other period does not work
adaptivedemux: Snap seek to other period does not work
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-12-29 00:13 UTC by Seungha Yang
Modified: 2018-11-03 14:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
adaptivedemux: Remove code for adjusting snap seek position (3.51 KB, patch)
2016-12-29 01:21 UTC, Seungha Yang
none Details | Review
adaptivedemux: Remove code for adjusting snap seek position (6.00 KB, patch)
2017-03-05 10:46 UTC, Seungha Yang
none Details | Review
dashdemux: Handle snap seek (2.84 KB, patch)
2017-03-05 10:47 UTC, Seungha Yang
none Details | Review
hlsdemux: Handle snap seek (2.94 KB, patch)
2017-03-05 10:47 UTC, Seungha Yang
none Details | Review
mssdemux: Handle snap seek (2.79 KB, patch)
2017-03-05 10:48 UTC, Seungha Yang
none Details | Review
[1/4] adaptivedemux: Remove code for adjusting snap seek position (5.96 KB, patch)
2017-05-26 10:07 UTC, Seungha Yang
none Details | Review
[2/4] dashdemux: Handle snap seek (3.05 KB, patch)
2017-05-26 10:08 UTC, Seungha Yang
none Details | Review
[3/4] hlsdemux: Handle snap seek (2.93 KB, patch)
2017-05-26 10:08 UTC, Seungha Yang
none Details | Review
[4/4] mssdemux: Handle snap seek (2.77 KB, patch)
2017-05-26 10:09 UTC, Seungha Yang
none Details | Review

Description Seungha Yang 2016-12-29 00:13:00 UTC
Subclass's stream_seek() work correctly only if the target seek position is inside the period corresponding to the stream.

Maybe, in case of snap seeking, the code for adjustment of target seek position should be moved to subclass, but it's done by adaptivedemux now.
Comment 1 Seungha Yang 2016-12-29 01:21:59 UTC
Created attachment 342560 [details] [review]
adaptivedemux: Remove code for adjusting snap seek position

Remove code to let subclass handle snap seeking
Comment 2 Sebastian Dröge (slomo) 2017-03-02 17:29:04 UTC
If we remove it here, the subclasses should all implement it. Can you provide patches for that? Or can it maybe be implemented generically in the baseclass somehow?
Comment 3 Seungha Yang 2017-03-05 10:46:46 UTC
Created attachment 347257 [details] [review]
adaptivedemux: Remove code for adjusting snap seek position

stream_seek() is possible if and only if the target seek position
is inside of current period, in case of DASH.
Also, previous implementation caused stream_seek() twice for a certain stream
(one done by adaptivdemux and the other done by subclass).
it's obviously redundant operation.

To handle snap seek, this patch removes the previous code,
and adaptivdemux will just handle GST_SEEK_TYPE_NONE case.
Then, let subclass handle snap seeking including gst_segment_do_seek().
Additionally, some macros which are commonly used by subclasses
are moved to header to remove duplication.
Comment 4 Seungha Yang 2017-03-05 10:47:32 UTC
Created attachment 347258 [details] [review]
dashdemux: Handle snap seek
Comment 5 Seungha Yang 2017-03-05 10:47:51 UTC
Created attachment 347259 [details] [review]
hlsdemux: Handle snap seek
Comment 6 Seungha Yang 2017-03-05 10:48:12 UTC
Created attachment 347260 [details] [review]
mssdemux: Handle snap seek
Comment 7 Seungha Yang 2017-05-26 10:07:40 UTC
Created attachment 352636 [details] [review]
[1/4] adaptivedemux: Remove code for adjusting snap seek position

rebase patch
Comment 8 Seungha Yang 2017-05-26 10:08:14 UTC
Created attachment 352637 [details] [review]
[2/4] dashdemux: Handle snap seek
Comment 9 Seungha Yang 2017-05-26 10:08:46 UTC
Created attachment 352638 [details] [review]
[3/4] hlsdemux: Handle snap seek
Comment 10 Seungha Yang 2017-05-26 10:09:08 UTC
Created attachment 352639 [details] [review]
[4/4] mssdemux: Handle snap seek
Comment 11 Seungha Yang 2017-05-26 10:11:03 UTC
Snap seek with multi-period dash stream still shows problem in gst1.12
Comment 12 GStreamer system administrator 2018-11-03 14:02:37 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/502.