Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 313382 Details for
Bug 457796
PATCH(es): fixes + libv4l support + more fixes
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
xawtv-3.95-no-dga.patch
xawtv-3.95-no-dga.patch (text/plain), 3.83 KB, created by
Hans de Goede
on 2008-08-04 17:46:58 UTC
(
hide
)
Description:
xawtv-3.95-no-dga.patch
Filename:
MIME Type:
Creator:
Hans de Goede
Created:
2008-08-04 17:46:58 UTC
Size:
3.83 KB
patch
obsolete
>diff -up xawtv-3.95/console/v4l-conf.c~ xawtv-3.95/console/v4l-conf.c >--- xawtv-3.95/console/v4l-conf.c~ 2008-08-03 22:22:01.000000000 +0200 >+++ xawtv-3.95/console/v4l-conf.c 2008-08-03 22:34:33.000000000 +0200 >@@ -221,6 +221,21 @@ displayinfo_x11(Display *dpy, struct DIS > } > } > >+#ifdef HAVE_LIBXXF86DGA >+static int dga_error = 0; >+static int dga_error_base; >+static int (*orig_xfree_error_handler)(Display *, XErrorEvent *); >+ >+static int dga_error_handler(Display *d, XErrorEvent *e) >+{ >+ if (e->error_code == (dga_error_base + XF86DGANoDirectVideoMode)) { >+ dga_error = 1; >+ return 0; >+ } >+ return orig_xfree_error_handler(d, e); >+} >+#endif >+ > static void > displayinfo_dga(Display *dpy, struct DISPLAYINFO *d) > { >@@ -228,7 +243,7 @@ displayinfo_dga(Display *dpy, struct DIS > int width,bar,foo,major,minor,flags=0; > void *base = NULL; > >- if (!XF86DGAQueryExtension(dpy,&foo,&bar)) { >+ if (!XF86DGAQueryExtension(dpy,&foo,&dga_error_base)) { > fprintf(stderr,"WARNING: Your X-Server has no DGA support.\n"); > return; > } >@@ -240,7 +255,14 @@ displayinfo_dga(Display *dpy, struct DIS > fprintf(stderr,"WARNING: No DGA support available for this display.\n"); > return; > } >+ orig_xfree_error_handler = XSetErrorHandler(dga_error_handler); > XF86DGAGetVideoLL(dpy,XDefaultScreen(dpy),(void*)&base,&width,&foo,&bar); >+ XSync(dpy, 0); >+ XSetErrorHandler(orig_xfree_error_handler); >+ if (dga_error) { >+ fprintf(stderr,"WARNING: No DGA direct video mode for this display.\n"); >+ return; >+ } > d->bpl = width * d->bpp/8; > d->base = base; > #else >diff -up xawtv-3.95/libng/plugins/drv0-v4l2.c~ xawtv-3.95/libng/plugins/drv0-v4l2.c >--- xawtv-3.95/libng/plugins/drv0-v4l2.c~ 2008-08-03 21:52:41.000000000 +0200 >+++ xawtv-3.95/libng/plugins/drv0-v4l2.c 2008-08-03 22:23:01.000000000 +0200 >@@ -618,7 +618,7 @@ v4l2_setupfb(void *handle, struct ng_vid > return -1; > > /* double-check settings */ >- if (NULL != base && h->ov_fb.base != base) { >+ if ((NULL != base && h->ov_fb.base != base) || h->ov_fb.base == NULL) { > fprintf(stderr,"v4l2: WARNING: framebuffer base address mismatch\n"); > fprintf(stderr,"v4l2: me=%p v4l=%p\n",base,h->ov_fb.base); > h->ov_error = 1; >diff -up xawtv-3.95/x11/xt.c~ xawtv-3.95/x11/xt.c >--- xawtv-3.95/x11/xt.c~ 2008-08-03 22:22:11.000000000 +0200 >+++ xawtv-3.95/x11/xt.c 2008-08-03 22:35:14.000000000 +0200 >@@ -1247,18 +1247,21 @@ FilterAction(Widget widget, XEvent *even > } > > /*----------------------------------------------------------------------*/ >+#ifdef HAVE_LIBXXF86DGA >+static int xfree_dga_error_base; >+#endif > > void > xfree_dga_init(Display *dpy) > { > #ifdef HAVE_LIBXXF86DGA >- int flags,foo,bar,ma,mi; >+ int flags,foo,ma,mi; > > if (!do_overlay) > return; > > if (args.dga) { >- if (XF86DGAQueryExtension(dpy,&foo,&bar)) { >+ if (XF86DGAQueryExtension(dpy,&foo,&xfree_dga_error_base)) { > XF86DGAQueryDirectVideo(dpy,XDefaultScreen(dpy),&flags); > if (flags & XF86DGADirectPresent) { > XF86DGAQueryVersion(dpy,&ma,&mi); >@@ -1348,6 +1351,19 @@ xfree_xinerama_init(Display *dpy) > #endif > } > >+#ifdef HAVE_LIBXXF86DGA >+static int (*orig_xfree_error_handler)(Display *, XErrorEvent *); >+ >+static int xfree_dga_error_handler(Display *d, XErrorEvent *e) >+{ >+ if (e->error_code == (xfree_dga_error_base + XF86DGANoDirectVideoMode)) { >+ have_dga = 0; >+ return 0; >+ } >+ return orig_xfree_error_handler(d, e); >+} >+#endif >+ > void > grabber_init() > { >@@ -1358,8 +1374,11 @@ grabber_init() > #ifdef HAVE_LIBXXF86DGA > if (have_dga) { > int bar,fred; >+ orig_xfree_error_handler = XSetErrorHandler(xfree_dga_error_handler); > XF86DGAGetVideoLL(dpy,XDefaultScreen(dpy),(void*)&base, > &screen.bytesperline,&bar,&fred); >+ XSync(dpy, 0); >+ XSetErrorHandler(orig_xfree_error_handler); > } > #endif > if (!do_overlay) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 457796
:
313380
|
313381
| 313382 |
313392