diff options
author | Mathieu Duponchelle <mathieu.duponchelle@opencreed.com> | 2015-03-02 14:00:03 +0100 |
---|---|---|
committer | Mathieu Duponchelle <mathieu.duponchelle@opencreed.com> | 2015-03-10 15:17:37 +0100 |
commit | bd70c73a8a4ceebf40ba65ec65616d0a29bfc41e (patch) | |
tree | f47dc4fcd1105cd6dc7c47fad702a1c610824be1 /ext/dash/gstmpdparser.h | |
parent | b4d8c04f08dce9f720fd4df3237d4f9986f98c43 (diff) | |
download | gstreamer-plugins-bad-bd70c73a8a4ceebf40ba65ec65616d0a29bfc41e.tar.gz |
dashdemux: implement get_presentation_offset.
To account for presentationTimeOffset as per section 7.2.1 .
https://bugzilla.gnome.org/show_bug.cgi?id=745455
Diffstat (limited to 'ext/dash/gstmpdparser.h')
-rw-r--r-- | ext/dash/gstmpdparser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dash/gstmpdparser.h b/ext/dash/gstmpdparser.h index 60433571b..7a098c3bc 100644 --- a/ext/dash/gstmpdparser.h +++ b/ext/dash/gstmpdparser.h @@ -456,6 +456,7 @@ struct _GstActiveStream GstSegmentTemplateNode *cur_seg_template; /* active segment template */ guint segment_idx; /* index of next sequence chunk */ GPtrArray *segments; /* array of GstMediaSegment */ + GstClockTime presentationTimeOffset; /* presentation time offset of the current segment */ }; struct _GstMpdClient @@ -503,6 +504,7 @@ gboolean gst_mpd_client_seek_to_time (GstMpdClient * client, GDateTime * time); GstDateTime *gst_mpd_client_add_time_difference (GstDateTime * t1, gint64 usecs); gint gst_mpd_client_get_segment_index_at_time (GstMpdClient *client, GstActiveStream * stream, const GstDateTime *time); gint gst_mpd_client_check_time_position (GstMpdClient * client, GstActiveStream * stream, GstClockTime ts, gint64 * diff); +GstClockTime gst_mpd_parser_get_stream_presentation_offset (GstMpdClient *client, guint stream_idx); /* Period selection */ guint gst_mpd_client_get_period_index_at_time (GstMpdClient * client, GstDateTime * time); |