Opened 18 years ago
Closed 18 years ago
#1915 closed patch (fixed)
mythfrontend does not entirely heed the -display option
Reported by: | Owned by: | danielk | |
---|---|---|---|
Priority: | minor | Milestone: | 0.20 |
Component: | mythtv | Version: | head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
myhtfrontend advertises the -display command line option, but does not always heed it. In particular, when I use my nVidia FX 5200 in dual-monitor mode, and from screen 0, I run "mythfrontend -display :0.1" to display myth on screen 1, almost everything works. But when it comes time to actually playback a recording (using XvMC), the screen goes blank.
If I set the DISPLAY environment variable to :0.1 and do not use -display, everything works, and the playback is normal on screen 1. (Thus, I have a simple, completely effective workaround.)
I checked the source code, and I see several instances of XOpenDisplay(NULL), which, of course, opens the default display, not the display that I specified with the -display command line.
Attachments (1)
Change History (6)
comment:1 Changed 18 years ago by
Milestone: | → 0.20 |
---|---|
Owner: | changed from Isaac Richards to danielk |
Version: | → head |
Changed 18 years ago by
Attachment: | 1915.patch added |
---|
comment:2 Changed 18 years ago by
Type: | defect → patch |
---|
rl, can you give this a try?
I only fixed mythfrontend, but if that works this should be trivial to port to mythtv. I don't have a good test setup at the moment, so this is untested with multiple X11 screens.
comment:3 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
The patch seems to work fine. Thanks!
comment:4 Changed 18 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
patch has not yet been applied.
comment:5 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
(In [10257]) Closes #1915. Heads -display param in non-Qt based XOpenDisplay() calls.
This grabs the "-display" param before QApplication steals it from us and saves it for later use in the context. We then use this in MythXOpenDisplay() which is used in place of XOpenDisplay() in the various places where we open the display ourselves.
This changes the binary revision so you will need to recompile the plugins.
possible fix