mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +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-pad-ix", G_TYPE_UINT, that_pad_stats->index,
|
||||||
"peer-elem-ix", G_TYPE_UINT, that_elem_stats->index,
|
"peer-elem-ix", G_TYPE_UINT, that_elem_stats->index,
|
||||||
"buffer-size", G_TYPE_UINT, gst_buffer_get_size (buf),
|
"buffer-size", G_TYPE_UINT, gst_buffer_get_size (buf),
|
||||||
/* TODO(ensonic): do PTS and DTS */
|
"buffer-pts", G_TYPE_UINT64, GST_BUFFER_PTS (buf),
|
||||||
"buffer-ts", G_TYPE_UINT64, GST_BUFFER_TIMESTAMP (buf),
|
"buffer-dts", G_TYPE_UINT64, GST_BUFFER_DTS (buf),
|
||||||
"buffer-duration", G_TYPE_UINT64, GST_BUFFER_DURATION (buf),
|
"buffer-duration", G_TYPE_UINT64, GST_BUFFER_DURATION (buf),
|
||||||
"buffer-flags", GST_TYPE_BUFFER_FLAGS, GST_BUFFER_FLAGS (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
|
static void
|
||||||
do_buffer_stats (GstStructure * s)
|
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 pad_ix, elem_ix, peer_elem_ix;
|
||||||
guint size;
|
guint size;
|
||||||
GstBufferFlags buffer_flags;
|
GstBufferFlags buffer_flags;
|
||||||
|
@ -291,7 +291,7 @@ do_buffer_stats (GstStructure * s)
|
||||||
"elem-ix", G_TYPE_UINT, &elem_ix,
|
"elem-ix", G_TYPE_UINT, &elem_ix,
|
||||||
"peer-elem-ix", G_TYPE_UINT, &peer_elem_ix,
|
"peer-elem-ix", G_TYPE_UINT, &peer_elem_ix,
|
||||||
"buffer-size", G_TYPE_UINT, &size,
|
"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-duration", G_TYPE_UINT64, &buffer_dur,
|
||||||
"buffer-flags", GST_TYPE_BUFFER_FLAGS, &buffer_flags, NULL);
|
"buffer-flags", GST_TYPE_BUFFER_FLAGS, &buffer_flags, NULL);
|
||||||
last_ts = MAX (last_ts, ts);
|
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);
|
GST_WARNING ("no element stats found for ix=%u", peer_elem_ix);
|
||||||
return;
|
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);
|
buffer_flags);
|
||||||
if (pad_stats->dir == GST_PAD_SRC) {
|
if (pad_stats->dir == GST_PAD_SRC) {
|
||||||
/* push */
|
/* push */
|
||||||
|
|
Loading…
Reference in a new issue