summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <ts.santos@sisa.samsung.com>2014-06-27 12:50:02 -0300
committerThiago Santos <ts.santos@sisa.samsung.com>2014-06-27 12:50:27 -0300
commite6244874aba326e2ad5fce0d061237d104b6a6f4 (patch)
tree9f8dd49a19e7f801229ba9c1b5368790bffef464
parent9bd186a960132b2141e2baffebc458501133d582 (diff)
downloadgstreamer-plugins-bad-e6244874aba326e2ad5fce0d061237d104b6a6f4.tar.gz
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.
-rw-r--r--gst-libs/gst/mpegts/gst-atsc-section.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/mpegts/gst-atsc-section.c b/gst-libs/gst/mpegts/gst-atsc-section.c
index 6934e84ac..cff1d1809 100644
--- a/gst-libs/gst/mpegts/gst-atsc-section.c
+++ b/gst-libs/gst/mpegts/gst-atsc-section.c
@@ -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 =