closedcaption: Use proper type for storing result

drop_ccp_from_cc_data() will return a negative value if there was an
error. Storing that in an unsigned value will cause the checks for errors to
never happen.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
Edward Hervey 2025-01-05 12:10:59 +01:00 committed by GStreamer Marge Bot
parent 524bea241d
commit 1221a09a5d
2 changed files with 4 additions and 2 deletions

View file

@ -219,7 +219,8 @@ static void
take_s334_both_fields (GstCCCombiner * self, GstBuffer * buffer)
{
GstMapInfo out = GST_MAP_INFO_INIT;
guint s334_len, cc_data_len, i;
gint s334_len;
guint cc_data_len, i;
gst_buffer_map (buffer, &out, GST_MAP_READWRITE);

View file

@ -188,7 +188,8 @@ static void
take_s334_both_fields (GstCea608Mux * self, GstBuffer * buffer)
{
GstMapInfo out = GST_MAP_INFO_INIT;
guint s334_len, cc_data_len, i;
gint s334_len;
guint cc_data_len, i;
gst_buffer_map (buffer, &out, GST_MAP_READWRITE);