diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2010-01-19 14:31:34 -0500 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-01-21 10:46:31 +0100 |
commit | 6c6d0e32cf227a8396c0299c1786e228fa27ea1d (patch) | |
tree | eeb2bad53bb01cc80d7055647f9920e69b1a0129 | |
parent | 8d2ac0b2ec386ede0e29a174b102574020072dcd (diff) |
basertppayload: ptime/maxptime should be unsigned
https://bugzilla.gnome.org/show_bug.cgi?id=607403
-rw-r--r-- | gst-libs/gst/rtp/gstbasertppayload.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst-libs/gst/rtp/gstbasertppayload.c b/gst-libs/gst/rtp/gstbasertppayload.c index 65c283fe..783e4020 100644 --- a/gst-libs/gst/rtp/gstbasertppayload.c +++ b/gst-libs/gst/rtp/gstbasertppayload.c @@ -548,7 +548,7 @@ gst_basertppayload_set_outcaps (GstBaseRTPPayload * payload, gchar * fieldname, 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. */ @@ -567,10 +567,10 @@ gst_basertppayload_set_outcaps (GstBaseRTPPayload * payload, gchar * fieldname, /* 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)) { |