mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
stats: TIMESTAMP -> PTS
This commit is contained in:
parent
660049bb38
commit
e5eb05741b
2 changed files with 5 additions and 5 deletions
|
@ -248,8 +248,8 @@ do_buffer_stats (GstStatsTracer * self, GstPad * this_pad,
|
|||
"peer-pad-ix", G_TYPE_UINT, that_pad_stats->index,
|
||||
"peer-elem-ix", G_TYPE_UINT, that_elem_stats->index,
|
||||
"buffer-size", G_TYPE_UINT, gst_buffer_get_size (buf),
|
||||
/* TODO(ensonic): do PTS and DTS */
|
||||
"buffer-ts", G_TYPE_UINT64, GST_BUFFER_TIMESTAMP (buf),
|
||||
"buffer-pts", G_TYPE_UINT64, GST_BUFFER_PTS (buf),
|
||||
"buffer-dts", G_TYPE_UINT64, GST_BUFFER_DTS (buf),
|
||||
"buffer-duration", G_TYPE_UINT64, GST_BUFFER_DURATION (buf),
|
||||
"buffer-flags", GST_TYPE_BUFFER_FLAGS, GST_BUFFER_FLAGS (buf),
|
||||
/*
|
||||
|
|
|
@ -278,7 +278,7 @@ do_element_stats (GstElementStats * stats, GstElementStats * peer_stats,
|
|||
static void
|
||||
do_buffer_stats (GstStructure * s)
|
||||
{
|
||||
guint64 ts, buffer_ts, buffer_dur;
|
||||
guint64 ts, buffer_pts, buffer_dur;
|
||||
guint pad_ix, elem_ix, peer_elem_ix;
|
||||
guint size;
|
||||
GstBufferFlags buffer_flags;
|
||||
|
@ -291,7 +291,7 @@ do_buffer_stats (GstStructure * s)
|
|||
"elem-ix", G_TYPE_UINT, &elem_ix,
|
||||
"peer-elem-ix", G_TYPE_UINT, &peer_elem_ix,
|
||||
"buffer-size", G_TYPE_UINT, &size,
|
||||
"buffer-ts", G_TYPE_UINT64, &buffer_ts,
|
||||
"buffer-pts", G_TYPE_UINT64, &buffer_pts,
|
||||
"buffer-duration", G_TYPE_UINT64, &buffer_dur,
|
||||
"buffer-flags", GST_TYPE_BUFFER_FLAGS, &buffer_flags, NULL);
|
||||
last_ts = MAX (last_ts, ts);
|
||||
|
@ -307,7 +307,7 @@ do_buffer_stats (GstStructure * s)
|
|||
GST_WARNING ("no element stats found for ix=%u", peer_elem_ix);
|
||||
return;
|
||||
}
|
||||
do_pad_stats (pad_stats, elem_ix, size, ts, buffer_ts, buffer_dur,
|
||||
do_pad_stats (pad_stats, elem_ix, size, ts, buffer_pts, buffer_dur,
|
||||
buffer_flags);
|
||||
if (pad_stats->dir == GST_PAD_SRC) {
|
||||
/* push */
|
||||
|
|
Loading…
Reference in a new issue