GstStructure *s, *d;
const GValue *value;
gint pt;
- gint max_ptime, ptime;
+ guint max_ptime, ptime;
/* peer provides caps we can use to fixate, intersect. This always returns a
* writable caps. */
/* get first structure */
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;
- 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;
if (gst_structure_get_int (s, "payload", &pt)) {