mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
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:
parent
524bea241d
commit
1221a09a5d
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue