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:
Thiago Santos 2014-06-27 12:50:02 -03:00
parent 9bd186a960
commit e6244874ab

View file

@ -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 =