From f8f24a2619b56637b364a23f082b6cc0178ebd3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Wed, 18 Aug 2021 19:46:25 -0400 Subject: rtphdrext: Update write() API to return a signed value Part-of: --- gst/rtp/gstrtphdrext-colorspace.c | 2 +- gst/rtpmanager/gstrtphdrext-rfc6464.c | 2 +- gst/rtpmanager/gstrtphdrext-twcc.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gst/rtp/gstrtphdrext-colorspace.c b/gst/rtp/gstrtphdrext-colorspace.c index 05fd8ddb0..eded3bed6 100644 --- a/gst/rtp/gstrtphdrext-colorspace.c +++ b/gst/rtp/gstrtphdrext-colorspace.c @@ -95,7 +95,7 @@ gst_rtp_header_extension_colorspace_get_max_size (GstRTPHeaderExtension * ext, GST_RTP_HDREXT_COLORSPACE_SIZE; } -static gsize +static gssize gst_rtp_header_extension_colorspace_write (GstRTPHeaderExtension * ext, const GstBuffer * input_meta, GstRTPHeaderExtensionFlags write_flags, GstBuffer * output, guint8 * data, gsize size) diff --git a/gst/rtpmanager/gstrtphdrext-rfc6464.c b/gst/rtpmanager/gstrtphdrext-rfc6464.c index 1dc1f0f43..03f9e5436 100644 --- a/gst/rtpmanager/gstrtphdrext-rfc6464.c +++ b/gst/rtpmanager/gstrtphdrext-rfc6464.c @@ -213,7 +213,7 @@ gst_rtp_header_extension_rfc6464_set_caps_from_attributes (GstRTPHeaderExtension return TRUE; } -static gsize +static gssize gst_rtp_header_extension_rfc6464_write (GstRTPHeaderExtension * ext, const GstBuffer * input_meta, GstRTPHeaderExtensionFlags write_flags, GstBuffer * output, guint8 * data, gsize size) diff --git a/gst/rtpmanager/gstrtphdrext-twcc.c b/gst/rtpmanager/gstrtphdrext-twcc.c index 0ebdea6ec..c1604aeb0 100644 --- a/gst/rtpmanager/gstrtphdrext-twcc.c +++ b/gst/rtpmanager/gstrtphdrext-twcc.c @@ -57,7 +57,7 @@ static GstRTPHeaderExtensionFlags gst_rtp_header_extension_twcc_get_supported_flags (GstRTPHeaderExtension * ext); static gsize gst_rtp_header_extension_twcc_get_max_size (GstRTPHeaderExtension * ext, const GstBuffer * buffer); -static gsize gst_rtp_header_extension_twcc_write (GstRTPHeaderExtension * ext, +static gssize gst_rtp_header_extension_twcc_write (GstRTPHeaderExtension * ext, const GstBuffer * input_meta, GstRTPHeaderExtensionFlags write_flags, GstBuffer * output, guint8 * data, gsize size); static gboolean gst_rtp_header_extension_twcc_read (GstRTPHeaderExtension * ext, @@ -167,7 +167,7 @@ gst_rtp_header_extension_twcc_get_max_size (GstRTPHeaderExtension * ext, return 2; } -static gsize +static gssize gst_rtp_header_extension_twcc_write (GstRTPHeaderExtension * ext, const GstBuffer * input_meta, GstRTPHeaderExtensionFlags write_flags, GstBuffer * output, guint8 * data, gsize size) -- cgit v1.2.1