summaryrefslogtreecommitdiffstats
path: root/sys/ximage
diff options
context:
space:
mode:
authordaniel fischer <dan@f3c.com>2007-06-11 11:41:56 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-06-11 11:41:56 +0000
commite359a4151702e89a27742d3905c2f59e821fbf23 (patch)
tree25bb92d5d66ea7e420037a15843134623113506a /sys/ximage
parenta3719a4a153525bc32af8a5bbf090b0e5a9f4941 (diff)
sys/ximage/gstximagesrc.c: Actually use the display_name property so that we can dump any available X display. Fixes ...
Original commit message from CVS: Patch by: daniel fischer <dan at f3c dot com> * sys/ximage/gstximagesrc.c: (gst_ximage_src_start), (gst_ximage_src_get_caps): Actually use the display_name property so that we can dump any available X display. Fixes #445905.
Diffstat (limited to 'sys/ximage')
-rw-r--r--sys/ximage/gstximagesrc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ximage/gstximagesrc.c b/sys/ximage/gstximagesrc.c
index 115a48b0..115d271b 100644
--- a/sys/ximage/gstximagesrc.c
+++ b/sys/ximage/gstximagesrc.c
@@ -207,7 +207,7 @@ gst_ximage_src_start (GstBaseSrc * basesrc)
#ifdef HAVE_XDAMAGE
s->last_ximage = NULL;
#endif
- return gst_ximage_src_open_display (s, NULL);
+ return gst_ximage_src_open_display (s, s->display_name);
}
static gboolean
@@ -903,7 +903,7 @@ gst_ximage_src_get_caps (GstBaseSrc * bs)
GstXContext *xcontext;
gint x, y, width, height;
- if ((!s->xcontext) && (!gst_ximage_src_open_display (s, NULL)))
+ if ((!s->xcontext) && (!gst_ximage_src_open_display (s, s->display_name)))
return gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_SRC (s)->
srcpad));