summaryrefslogtreecommitdiffstats
path: root/src/gstplayer.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2012-04-28 11:53:06 -0500
committerSlávek Banko <[email protected]>2012-06-18 23:49:44 +0200
commit4dbd244d26feee1a52b1a3c37b3e27076a29b7ca (patch)
treebc2f92155e5b3c200f0fd7199e7688b4cabef7f5 /src/gstplayer.cpp
parentbd8cc27bb451d668c6460c3c883dc7dd1054dd11 (diff)
downloadkmplayer-4dbd244d26feee1a52b1a3c37b3e27076a29b7ca.tar.gz
kmplayer-4dbd244d26feee1a52b1a3c37b3e27076a29b7ca.zip
GCC 4.7 fixes.
(cherry picked from commit 5106117b5c1439d3fee08395c1a025f62d30a53e)
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);