Commit d76e3361 authored by Damien Lespiau's avatar Damien Lespiau Committed by Tim-Philipp Müller
Browse files

gst-libs/gst/sdp/gstsdpmessage.c: Use GST_STR_NULL to avoid crashes with libcs...

gst-libs/gst/sdp/gstsdpmessage.c: Use GST_STR_NULL to avoid crashes with libcs that don't like NULL strings in printf...

Original commit message from CVS:
Patch by: Damien Lespiau  <damien.lespiau gmail com>
* gst-libs/gst/sdp/gstsdpmessage.c: (print_media):
Use GST_STR_NULL to avoid crashes with libcs that don't
like NULL strings in printf args (such as the win32 one).
Fixes #544306.
parent 2b8f4868
2008-07-23 Tim-Philipp Müller <tim.muller at collabora co uk>
Patch by: Damien Lespiau <damien.lespiau gmail com>
* gst-libs/gst/sdp/gstsdpmessage.c: (print_media):
Use GST_STR_NULL to avoid crashes with libcs that don't
like NULL strings in printf args (such as the win32 one).
Fixes #544306.
2008-07-17 Jan Schmidt <Jan.Schmidt@sun.com>
 
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_check_xshm_calls):
common @ e7987985
Subproject commit a100efef186a5f8999fe3aa42c0720f5123c08eb
Subproject commit e79879859bc866545379eb77e1378a906dc30ebf
......@@ -1876,10 +1876,10 @@ gst_sdp_message_parse_buffer (const guint8 * data, guint size,
static void
print_media (GstSDPMedia * media)
{
g_print (" media: '%s'\n", media->media);
g_print (" media: '%s'\n", GST_STR_NULL (media->media));
g_print (" port: '%u'\n", media->port);
g_print (" num_ports: '%u'\n", media->num_ports);
g_print (" proto: '%s'\n", media->proto);
g_print (" proto: '%s'\n", GST_STR_NULL (media->proto));
if (media->fmts->len > 0) {
guint i;
......@@ -1888,10 +1888,10 @@ print_media (GstSDPMedia * media)
g_print (" format '%s'\n", g_array_index (media->fmts, gchar *, i));
}
}
g_print (" information: '%s'\n", media->information);
g_print (" information: '%s'\n", GST_STR_NULL (media->information));
g_print (" key:\n");
g_print (" type: '%s'\n", media->key.type);
g_print (" data: '%s'\n", media->key.data);
g_print (" type: '%s'\n", GST_STR_NULL (media->key.type));
g_print (" data: '%s'\n", GST_STR_NULL (media->key.data));
if (media->attributes->len > 0) {
guint i;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment