summaryrefslogtreecommitdiff
path: root/gst-libs/gst/rtp/gstrtpbasepayload.c
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2021-08-18 19:40:55 -0400
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-09-15 16:35:09 +0000
commitfd93c1ac197fc98ed896afab7414b91b383039d2 (patch)
tree486d21adea4de38a2315845eec325cedf902cbd2 /gst-libs/gst/rtp/gstrtpbasepayload.c
parent98f2a84a289ed4d4cfac9bc5c73182a56eefa99c (diff)
downloadgstreamer-plugins-base-fd93c1ac197fc98ed896afab7414b91b383039d2.tar.gz
rtphdrext: Make write function return a signed value
Since the return value is documented to possibly be smaller than 0, then it needs to be signed. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1258>
Diffstat (limited to 'gst-libs/gst/rtp/gstrtpbasepayload.c')
-rw-r--r--gst-libs/gst/rtp/gstrtpbasepayload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/rtp/gstrtpbasepayload.c b/gst-libs/gst/rtp/gstrtpbasepayload.c
index d092fc75e..e72469cca 100644
--- a/gst-libs/gst/rtp/gstrtpbasepayload.c
+++ b/gst-libs/gst/rtp/gstrtpbasepayload.c
@@ -1641,7 +1641,7 @@ write_header_extension (GstRTPHeaderExtension * ext, gpointer user_data)
gsize remaining =
hdr->allocated_size - hdr->written_size - hdr->hdr_unit_size;
gsize offset = hdr->written_size + hdr->hdr_unit_size;
- gsize written;
+ gssize written;
guint ext_id;
if (hdr->abort)