summaryrefslogtreecommitdiffstats
path: root/src/gstplayer.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2012-04-28 11:53:06 -0500
committerDarrell Anderson <[email protected]>2012-04-28 11:53:06 -0500
commit5106117b5c1439d3fee08395c1a025f62d30a53e (patch)
tree8888b5b7d055235f52b78c5db60207c6e5192494 /src/gstplayer.cpp
parent587c70d6b596ef1327660b19a237e93ce8390e4d (diff)
downloadkmplayer-5106117b5c1439d3fee08395c1a025f62d30a53e.tar.gz
kmplayer-5106117b5c1439d3fee08395c1a025f62d30a53e.zip
GCC 4.7 fixes.
Diffstat (limited to 'src/gstplayer.cpp')
-rw-r--r--src/gstplayer.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/gstplayer.cpp b/src/gstplayer.cpp
index ebf7b0d..c4bf580 100644
--- a/src/gstplayer.cpp
+++ b/src/gstplayer.cpp
@@ -1003,11 +1003,16 @@ int main(int argc, char **argv) {
gstapp->exec ();
XLockDisplay(display);
- XClientMessageEvent ev = {
- ClientMessage, 0, true, display, wid,
- XInternAtom (display, "XVIDEO", false), 8, {b: "quit_now"}
- };
- XSendEvent (display, wid, false, StructureNotifyMask, (XEvent *) & ev);
+ XEvent ev;
+ ev.xclient.type = ClientMessage;
+ ev.xclient.serial = 0;
+ ev.xclient.send_event = true;
+ ev.xclient.display = display;
+ ev.xclient.window = wid;
+ ev.xclient.message_type = XInternAtom (display, "XVIDEO", false);
+ ev.xclient.format = 8;
+ strcpy(ev.xclient.data.b, "quit_now");
+ XSendEvent (display, wid, false, StructureNotifyMask, &ev);
XFlush (display);
XUnlockDisplay(display);
eventThread->wait (500);