mpegts: atsc: avoid calling g_convert with 0-sized input
Avoids an assertion. The cached string will be assigned an empty string as its value when size is 0.
This commit is contained in:
parent
9bd186a960
commit
e6244874ab
@ -437,7 +437,7 @@ _gst_mpegts_atsc_string_segment_decode_string (GstMpegtsAtscStringSegment * seg)
|
||||
break;
|
||||
}
|
||||
|
||||
if (from_encoding != NULL) {
|
||||
if (from_encoding != NULL && seg->compressed_data_size > 0) {
|
||||
GError *err = NULL;
|
||||
|
||||
seg->cached_string =
|
||||
|
Loading…
x
Reference in New Issue
Block a user