summaryrefslogtreecommitdiffstats
path: root/gst/mpegdemux
diff options
context:
space:
mode:
authorSebastian Pölsterl <marduk@k-d-w.org>2008-10-16 08:17:59 +0000
committerZaheer Abbas Merali <zaheerabbas@merali.org>2008-10-16 08:17:59 +0000
commitd8ed703cdb8b97c89aaa6a5f6eab0c9998d8f1a2 (patch)
tree6d72e3666cf0a79792646ad08b48be19f5ded860 /gst/mpegdemux
parent9a808ad30ae1de953b0c6813a53c02d14994de70 (diff)
downloadgst-plugins-bad-d8ed703cdb8b97c89aaa6a5f6eab0c9998d8f1a2.tar.gz
gst-plugins-bad-d8ed703cdb8b97c89aaa6a5f6eab0c9998d8f1a2.tar.bz2
gst-plugins-bad-d8ed703cdb8b97c89aaa6a5f6eab0c9998d8f1a2.zip
gst/mpegdemux/mpegtspacketizer.c: Fixes segfault in get_encoding_and_convert.
Original commit message from CVS: patch by: Sebastian Pölsterl * gst/mpegdemux/mpegtspacketizer.c: Fixes segfault in get_encoding_and_convert. Fixes #556482
Diffstat (limited to 'gst/mpegdemux')
-rw-r--r--gst/mpegdemux/mpegtspacketizer.c3
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) {