From 972184f434c3212aa313eacb9025869d050e91c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Wed, 18 Aug 2021 19:47:40 -0400 Subject: [PATCH] rtphdrhext-twcc: Return failure on map failure This feels like exactly like a case that should fail. Part-of: --- gst/rtpmanager/gstrtphdrext-twcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtpmanager/gstrtphdrext-twcc.c b/gst/rtpmanager/gstrtphdrext-twcc.c index c1604aeb0c..1382e7ca21 100644 --- a/gst/rtpmanager/gstrtphdrext-twcc.c +++ b/gst/rtpmanager/gstrtphdrext-twcc.c @@ -214,7 +214,7 @@ gst_rtp_header_extension_twcc_write (GstRTPHeaderExtension * ext, map_failed: { GST_ERROR ("failed to map buffer %p", output); - return 0; + return -1; } existing_too_small: