mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
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.
This commit is contained in:
parent
182d4ec6bf
commit
eb43a73244
2 changed files with 27 additions and 0 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
2004-05-21 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2004-05-21 Thomas Vander Stichele <thomas (at) apestaart (dot) org>
|
2004-05-21 Thomas Vander Stichele <thomas (at) apestaart (dot) org>
|
||||||
|
|
||||||
* m4/as-arts.m4:
|
* m4/as-arts.m4:
|
||||||
|
|
|
@ -630,6 +630,22 @@ gst_xvimagesink_get_xv_support (GstXvImageSink * xvimagesink,
|
||||||
return NULL;
|
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 */
|
/* We get all image formats supported by our port */
|
||||||
formats = XvListImageFormats (xcontext->disp,
|
formats = XvListImageFormats (xcontext->disp,
|
||||||
xcontext->xv_port_id, &nb_formats);
|
xcontext->xv_port_id, &nb_formats);
|
||||||
|
|
Loading…
Reference in a new issue