From: Sebastian Dröge Date: Tue, 1 Sep 2015 10:13:58 +0000 (+0300) Subject: Revert "dashdemux: Subtract the period start time from the presentation offset" X-Git-Tag: 1.19.3~507^2~8013 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5697b8ced15b995382a9dd5d899eb6c10e7f775;p=platform%2Fupstream%2Fgstreamer.git Revert "dashdemux: Subtract the period start time from the presentation offset" This reverts commit 626a8f0a74f8ea748b811b74ba9e7ae2baea2cca. This allows us to get the plain presentation offset and the period start time separately. We have to adjust the timestamp by the presentation offset, but the period start time should only adjust the stream time and running time. https://bugzilla.gnome.org/show_bug.cgi?id=752409 --- diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index 2747280..02422b1 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -3756,17 +3756,13 @@ gst_mpd_parser_get_stream_presentation_offset (GstMpdClient * client, guint stream_idx) { GstActiveStream *stream = NULL; - GstStreamPeriod *stream_period = gst_mpdparser_get_stream_period (client); g_return_val_if_fail (client != NULL, FALSE); g_return_val_if_fail (client->active_streams != NULL, FALSE); stream = g_list_nth_data (client->active_streams, stream_idx); g_return_val_if_fail (stream != NULL, FALSE); - if (stream->presentationTimeOffset > stream_period->start) - return stream->presentationTimeOffset - stream_period->start; - else - return 0; + return stream->presentationTimeOffset; } /**