mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 23:14:46 +00:00
sys/ximage/gstximagesrc.c: Initialise variables when opening the X display rather than in _start(), as the display ca...
Original commit message from CVS: * sys/ximage/gstximagesrc.c: Initialise variables when opening the X display rather than in _start(), as the display can be opened before that. Fixes: #515985
This commit is contained in:
parent
d62d8d9fea
commit
361c3c94c3
2 changed files with 13 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
|||
2008-02-12 Jan Schmidt <jan.schmidt@sun.com>
|
||||
|
||||
* sys/ximage/gstximagesrc.c:
|
||||
Initialise variables when opening the X display rather
|
||||
than in _start(), as the display can be opened before that.
|
||||
|
||||
Fixes: #515985
|
||||
|
||||
2008-02-12 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* sys/directdraw/gstdirectdrawsink.c:
|
||||
|
|
|
@ -161,6 +161,11 @@ gst_ximage_src_open_display (GstXImageSrc * s, const gchar * name)
|
|||
int error_base;
|
||||
long evmask = NoEventMask;
|
||||
|
||||
s->have_xdamage = FALSE;
|
||||
s->damage = None;
|
||||
s->damage_copy_gc = None;
|
||||
s->damage_region = None;
|
||||
|
||||
if (XDamageQueryExtension (s->xcontext->disp, &s->damage_event_base,
|
||||
&error_base)) {
|
||||
s->damage =
|
||||
|
@ -206,9 +211,6 @@ gst_ximage_src_start (GstBaseSrc * basesrc)
|
|||
s->last_frame_no = -1;
|
||||
#ifdef HAVE_XDAMAGE
|
||||
s->last_ximage = NULL;
|
||||
s->damage = None;
|
||||
s->damage_copy_gc = None;
|
||||
s->damage_region = None;
|
||||
#endif
|
||||
return gst_ximage_src_open_display (s, s->display_name);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue