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 764726 - dashdemux: fix default suggestedPresentationDelay
dashdemux: fix default suggestedPresentationDelay
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 1.11.90
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-04-07 13:25 UTC by Wojciech Przybyl
Modified: 2017-03-02 18:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix (1.47 KB, patch)
2016-04-07 13:28 UTC, Wojciech Przybyl
needs-work Details | Review
Patch (1.49 KB, patch)
2016-04-15 08:43 UTC, Wojciech Przybyl
committed Details | Review

Description Wojciech Przybyl 2016-04-07 13:25:59 UTC
When applying default value of suggestedPresentationDelay, the value
should be subtracted from current time, not added to it. When streams
setup is performed and live point is calculated, we have to go to the
wall clock (current time) minus suggestedPresentationDelay, if we try
to start with current time plus suggestedPresentationDelay, we would
be asking for future stream, which has not yet been recorded.
Comment 1 Wojciech Przybyl 2016-04-07 13:28:41 UTC
Created attachment 325533 [details] [review]
fix
Comment 2 Thiago Sousa Santos 2016-04-08 19:24:43 UTC
Review of attachment 325533 [details] [review]:

::: ext/dash/gstdashdemux.c
@@ -743,3 @@
     } else if (dashdemux->default_presentation_delay) {
       gint64 dfp =
-          gst_mpd_client_parse_default_presentation_delay (dashdemux->client,

Good catch but I also believe the value should be passed as microseconds so it should be multiplied by 1000 as well.
Comment 3 Wojciech Przybyl 2016-04-15 08:43:11 UTC
Created attachment 326072 [details] [review]
Patch

Yes, definitely. Patch with the time conversion from ms to us.
Comment 4 Sebastian Dröge (slomo) 2017-03-02 18:12:21 UTC
commit 8eb87ce5dc69f44ffe539eb617c27bd389d39ec0
Author: Wojciech Przybyl <wojciech@visla.co.uk>
Date:   Fri Apr 1 17:42:32 2016 +0100

    dashdemux: fix default suggestedPresentationDelay
    
    When MPD@suggestedPresentationDelay is not present in the MPD,
    dashdemux can provide default suggestedPresentationDelay. However
    when applying default value of suggestedPresentationDelay, the value
    should be subtracted from current time, not added to it. When streams
    setup is performed and live point is calculated, we have to go to the
    wall clock (current time) minus suggestedPresentationDelay, if we tried
    to start with current time plus suggestedPresentationDelay, we would
    be asking for future stream, which has not yet been recorded. Also
    the value needs to be converted from ms to us.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764726