From: Stefan Kost Date: Thu, 18 Jun 2009 15:13:22 +0000 (+0300) Subject: xvimagesink: appname might be NULL X-Git-Tag: 1.19.3~511^2~9525 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=483a955e89441ec84439bb2acda8d6e037cbe724;p=platform%2Fupstream%2Fgstreamer.git xvimagesink: appname might be NULL Don't set title if appname is unknown. --- diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 3e4fe76..c033a33 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -938,8 +938,10 @@ gst_xvimagesink_xwindow_new (GstXvImageSink * xvimagesink, /* set application name as a title */ title = g_get_application_name (); - if ((XStringListToTextProperty (((char **) &title), 1, &xproperty)) != 0) - XSetWMName (xvimagesink->xcontext->disp, xwindow->win, &xproperty); + if (title) { + if ((XStringListToTextProperty (((char **) &title), 1, &xproperty)) != 0) + XSetWMName (xvimagesink->xcontext->disp, xwindow->win, &xproperty); + } if (xvimagesink->handle_events) { Atom wm_delete;