Commit 361c3c94 authored by Jan Schmidt's avatar Jan Schmidt
Browse files

sys/ximage/gstximagesrc.c: Initialise variables when opening the X display...

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
parent d62d8d9f
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> 2008-02-12 Sebastian Dröge <slomo@circular-chaos.org>
   
* sys/directdraw/gstdirectdrawsink.c: * sys/directdraw/gstdirectdrawsink.c:
......
...@@ -161,6 +161,11 @@ gst_ximage_src_open_display (GstXImageSrc * s, const gchar * name) ...@@ -161,6 +161,11 @@ gst_ximage_src_open_display (GstXImageSrc * s, const gchar * name)
int error_base; int error_base;
long evmask = NoEventMask; 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, if (XDamageQueryExtension (s->xcontext->disp, &s->damage_event_base,
&error_base)) { &error_base)) {
s->damage = s->damage =
...@@ -206,9 +211,6 @@ gst_ximage_src_start (GstBaseSrc * basesrc) ...@@ -206,9 +211,6 @@ gst_ximage_src_start (GstBaseSrc * basesrc)
s->last_frame_no = -1; s->last_frame_no = -1;
#ifdef HAVE_XDAMAGE #ifdef HAVE_XDAMAGE
s->last_ximage = NULL; s->last_ximage = NULL;
s->damage = None;
s->damage_copy_gc = None;
s->damage_region = None;
#endif #endif
return gst_ximage_src_open_display (s, s->display_name); return gst_ximage_src_open_display (s, s->display_name);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment