diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2021-08-18 19:47:40 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2021-09-15 17:02:01 +0000 |
commit | 972184f434c3212aa313eacb9025869d050e91c3 (patch) | |
tree | ad95a2b81094c6dea8ba27eaa840afafb6aa05eb | |
parent | f8f24a2619b56637b364a23f082b6cc0178ebd3e (diff) | |
download | gstreamer-plugins-good-972184f434c3212aa313eacb9025869d050e91c3.tar.gz |
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>
-rw-r--r-- | gst/rtpmanager/gstrtphdrext-twcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtpmanager/gstrtphdrext-twcc.c b/gst/rtpmanager/gstrtphdrext-twcc.c index c1604aeb0..1382e7ca2 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: |