diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-06-18 18:13:22 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-06-18 18:13:22 +0300 |
commit | 483a955e89441ec84439bb2acda8d6e037cbe724 (patch) | |
tree | 81c97cfb57a80331bf9d3125f12f749427e4d3e6 /sys | |
parent | 192efaf1d016e0986463a551acc78bad5995f7ef (diff) |
xvimagesink: appname might be NULL
Don't set title if appname is unknown.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/xvimage/xvimagesink.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 3e4fe769..c033a33b 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; |