basertppayload: ptime/maxptime should be unsigned

https://bugzilla.gnome.org/show_bug.cgi?id=607403
This commit is contained in:
Olivier Crête 2010-01-19 14:31:34 -05:00 committed by Wim Taymans
parent 8d2ac0b2ec
commit 6c6d0e32cf

View file

@ -548,7 +548,7 @@ gst_basertppayload_set_outcaps (GstBaseRTPPayload * payload, gchar * fieldname,
GstStructure *s, *d; GstStructure *s, *d;
const GValue *value; const GValue *value;
gint pt; gint pt;
gint max_ptime, ptime; guint max_ptime, ptime;
/* peer provides caps we can use to fixate, intersect. This always returns a /* peer provides caps we can use to fixate, intersect. This always returns a
* writable caps. */ * writable caps. */
@ -567,10 +567,10 @@ gst_basertppayload_set_outcaps (GstBaseRTPPayload * payload, gchar * fieldname,
/* get first structure */ /* get first structure */
s = gst_caps_get_structure (temp, 0); s = gst_caps_get_structure (temp, 0);
if (gst_structure_get_int (s, "maxptime", &max_ptime) && max_ptime > 0) if (gst_structure_get_uint (s, "maxptime", &max_ptime))
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_uint (s, "ptime", &ptime))
payload->abidata.ABI.ptime = ptime * GST_MSECOND; payload->abidata.ABI.ptime = ptime * GST_MSECOND;
if (gst_structure_get_int (s, "payload", &pt)) { if (gst_structure_get_int (s, "payload", &pt)) {