mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
xvimagesink: appname might be NULL
Don't set title if appname is unknown.
This commit is contained in:
parent
192efaf1d0
commit
483a955e89
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue