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
This commit is contained in:
Sebastian Pölsterl 2008-10-16 08:17:59 +00:00 committed by Zaheer Abbas Merali
parent 9a808ad30a
commit d8ed703cdb
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2008-10-16 Zaheer Abbas Merali <zaheerabbas at merali dot org>
patch by: Sebastian Pölsterl
* gst/mpegdemux/mpegtspacketizer.c:
Fixes segfault in get_encoding_and_convert.
Fixes #556482
2008-10-15 Zaheer Abbas Merali <zaheerabbas at merali dot org>
patch by: Josep Torra

View file

@ -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) {