diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mpegdemux/mpegtspacketizer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/mpegdemux/mpegtspacketizer.c b/gst/mpegdemux/mpegtspacketizer.c index ce4a644a..a89236b5 100644 --- a/gst/mpegdemux/mpegtspacketizer.c +++ b/gst/mpegdemux/mpegtspacketizer.c @@ -2213,6 +2213,9 @@ get_encoding_and_convert (const gchar * text, guint length) g_return_val_if_fail (text != NULL, NULL); + if (length == 0) + return g_strdup (""); + encoding = get_encoding (text, &start_text, &is_multibyte); if (encoding == NULL) { |