mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
basertppayload: ptime should be in nanoseconds
https://bugzilla.gnome.org/show_bug.cgi?id=607403
This commit is contained in:
parent
dea7d352da
commit
8d2ac0b2ec
2 changed files with 2 additions and 2 deletions
|
@ -571,7 +571,7 @@ gst_basertppayload_set_outcaps (GstBaseRTPPayload * payload, gchar * fieldname,
|
|||
payload->priv->caps_max_ptime = max_ptime * GST_MSECOND;
|
||||
|
||||
if (gst_structure_get_int (s, "ptime", &ptime) && ptime > 0)
|
||||
payload->abidata.ABI.ptime = ptime;
|
||||
payload->abidata.ABI.ptime = ptime * GST_MSECOND;
|
||||
|
||||
if (gst_structure_get_int (s, "payload", &pt)) {
|
||||
/* use peer pt */
|
||||
|
|
|
@ -113,7 +113,7 @@ struct _GstBaseRTPPayload
|
|||
|
||||
union {
|
||||
struct {
|
||||
guint ptime; /* in ms */
|
||||
guint64 ptime; /* in ns */
|
||||
} ABI;
|
||||
gpointer _gst_reserved[GST_PADDING - (sizeof(guint64)/sizeof(gpointer)) - 1];
|
||||
} abidata;
|
||||
|
|
Loading…
Reference in a new issue