basertppayload: ptime should be in nanoseconds

https://bugzilla.gnome.org/show_bug.cgi?id=607403
This commit is contained in:
Olivier Crête 2010-01-18 21:16:32 -05:00 committed by Wim Taymans
parent dea7d352da
commit 8d2ac0b2ec
2 changed files with 2 additions and 2 deletions

View file

@ -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 */

View file

@ -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;