mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
9a808ad30a
commit
d8ed703cdb
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue