mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
mpegtsmux: use GST_STIME_ARGS for GstClockTimeDiff
No need to manually handle negative values of best->dts in GST_DEBUG_OBJECT. Use GST_STIME_ARGS for this.
This commit is contained in:
parent
2288b5e9ec
commit
fa4b58f1cd
1 changed files with 2 additions and 3 deletions
|
@ -1207,9 +1207,8 @@ mpegtsmux_collected_buffer (GstCollectPads * pads, GstCollectData * data,
|
|||
|
||||
if (GST_CLOCK_STIME_IS_VALID (best->dts)) {
|
||||
dts = GSTTIME_TO_MPEGTIME (best->dts);
|
||||
GST_DEBUG_OBJECT (mux, "Buffer has DTS %s%" GST_TIME_FORMAT " dts %"
|
||||
G_GINT64_FORMAT, best->dts >= 0 ? " " : "-",
|
||||
GST_TIME_ARGS (ABS (best->dts)), dts);
|
||||
GST_DEBUG_OBJECT (mux, "Buffer has DTS %" GST_STIME_FORMAT " dts %"
|
||||
G_GINT64_FORMAT, GST_STIME_ARGS (best->dts), dts);
|
||||
}
|
||||
|
||||
/* should not have a DTS without PTS */
|
||||
|
|
Loading…
Reference in a new issue