rtphdrhext-twcc: Return failure on map failure

This feels like exactly like a case that should fail.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1059>
This commit is contained in:
Olivier Crête 2021-08-18 19:47:40 -04:00 committed by Olivier Crête
parent f8f24a2619
commit 972184f434

View file

@ -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: