Commit 8d2ac0b2 authored by Olivier Crête's avatar Olivier Crête Committed by Wim Taymans
Browse files

basertppayload: ptime should be in nanoseconds

https://bugzilla.gnome.org/show_bug.cgi?id=607403
parent dea7d352
...@@ -571,7 +571,7 @@ gst_basertppayload_set_outcaps (GstBaseRTPPayload * payload, gchar * fieldname, ...@@ -571,7 +571,7 @@ gst_basertppayload_set_outcaps (GstBaseRTPPayload * payload, gchar * fieldname,
payload->priv->caps_max_ptime = max_ptime * GST_MSECOND; payload->priv->caps_max_ptime = max_ptime * GST_MSECOND;
if (gst_structure_get_int (s, "ptime", &ptime) && ptime > 0) 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)) { if (gst_structure_get_int (s, "payload", &pt)) {
/* use peer pt */ /* use peer pt */
......
...@@ -113,7 +113,7 @@ struct _GstBaseRTPPayload ...@@ -113,7 +113,7 @@ struct _GstBaseRTPPayload
union { union {
struct { struct {
guint ptime; /* in ms */ guint64 ptime; /* in ns */
} ABI; } ABI;
gpointer _gst_reserved[GST_PADDING - (sizeof(guint64)/sizeof(gpointer)) - 1]; gpointer _gst_reserved[GST_PADDING - (sizeof(guint64)/sizeof(gpointer)) - 1];
} abidata; } abidata;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment