summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2004-05-21 13:28:24 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2004-05-21 13:28:24 +0000
commiteb43a73244765cb5c680d8213596aad5515011c6 (patch)
treead9f76df844831710edb12472f8e6e6b6dee554b /sys
parent182d4ec6bfcfd61c6fbc220d014ea747463eb483 (diff)
downloadgstreamer-plugins-base-eb43a73244765cb5c680d8213596aad5515011c6.tar.gz
ext/dv/gstdvdec.c: Fix format conversion and position querying.
Original commit message from CVS: * ext/dv/gstdvdec.c: (gst_dvdec_init), (gst_dvdec_get_formats), (gst_dvdec_src_convert), (gst_dvdec_sink_convert): Fix format conversion and position querying. * gst/debug/progressreport.c: (gst_progressreport_report): Don't output a bogus total value that we didn't query. * sys/xvimage/xvimagesink.c: (gst_xvimagesink_get_xv_support): Always set XV_AUTOPAINT_COLORKEY to true. Fixes xvimagesink showing only a blank window after xine has been used.
Diffstat (limited to 'sys')
-rw-r--r--sys/xvimage/xvimagesink.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c
index d0d6d798a..d01ecf872 100644
--- a/sys/xvimage/xvimagesink.c
+++ b/sys/xvimage/xvimagesink.c
@@ -630,6 +630,22 @@ gst_xvimagesink_get_xv_support (GstXvImageSink * xvimagesink,
return NULL;
}
+ /* Set XV_AUTOPAINT_COLORKEY */
+ {
+ int count;
+ const XvAttribute *const attr = XvQueryPortAttributes (xcontext->disp,
+ xcontext->xv_port_id, &count);
+ static const char autopaint[] = "XV_AUTOPAINT_COLORKEY";
+
+ for (i = 0; i < count; i++)
+ if (!strcmp (attr[i].name, autopaint)) {
+ const Atom atom = XInternAtom (xcontext->disp, autopaint, False);
+
+ XvSetPortAttribute (xcontext->disp, xcontext->xv_port_id, atom, 1);
+ break;
+ }
+ }
+
/* We get all image formats supported by our port */
formats = XvListImageFormats (xcontext->disp,
xcontext->xv_port_id, &nb_formats);