xvimagesink: appname might be NULL

Don't set title if appname is unknown.
This commit is contained in:
Stefan Kost 2009-06-18 18:13:22 +03:00
parent 192efaf1d0
commit 483a955e89

View file

@ -938,8 +938,10 @@ gst_xvimagesink_xwindow_new (GstXvImageSink * xvimagesink,
/* set application name as a title */
title = g_get_application_name ();
if (title) {
if ((XStringListToTextProperty (((char **) &title), 1, &xproperty)) != 0)
XSetWMName (xvimagesink->xcontext->disp, xwindow->win, &xproperty);
}
if (xvimagesink->handle_events) {
Atom wm_delete;