mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 03:45:39 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue