mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-07 20:31:20 +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 */
|
/* set application name as a title */
|
||||||
title = g_get_application_name ();
|
title = g_get_application_name ();
|
||||||
if ((XStringListToTextProperty (((char **) &title), 1, &xproperty)) != 0)
|
if (title) {
|
||||||
XSetWMName (xvimagesink->xcontext->disp, xwindow->win, &xproperty);
|
if ((XStringListToTextProperty (((char **) &title), 1, &xproperty)) != 0)
|
||||||
|
XSetWMName (xvimagesink->xcontext->disp, xwindow->win, &xproperty);
|
||||||
|
}
|
||||||
|
|
||||||
if (xvimagesink->handle_events) {
|
if (xvimagesink->handle_events) {
|
||||||
Atom wm_delete;
|
Atom wm_delete;
|
||||||
|
|
Loading…
Reference in a new issue