[mythtv-commits] Ticket #3401: mythtv-setup crashes when using remote X display (via ssh)
MythTV
mythtv at cvs.mythtv.org
Thu May 3 05:15:44 UTC 2007
#3401: mythtv-setup crashes when using remote X display (via ssh)
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: head
Severity: medium | Resolution:
-----------------------+----------------------------------------------------
Comment(by gal):
The cause is XRR not being checked before calling into it. The attached
patch fixes the problem for me.
{{{
Index: DisplayResX.cpp
===================================================================
--- DisplayResX.cpp (revision 13397)
+++ DisplayResX.cpp (working copy)
@@ -121,7 +121,10 @@
X11L;
Window root = RootWindow(display, DefaultScreen(display));
- XRRScreenConfiguration *cfg = XRRGetScreenInfo(display, root);
+ XRRScreenConfiguration *cfg = NULL;
+ int event_base, error_base;
+ if (XRRQueryExtension(display, &event_base, &error_base))
+ cfg = XRRGetScreenInfo(display, root);
if (!cfg)
{
if (display)
}}}
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/3401#comment:1>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list