From 5106117b5c1439d3fee08395c1a025f62d30a53e Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Sat, 28 Apr 2012 11:53:06 -0500 Subject: GCC 4.7 fixes. --- src/gstplayer.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/gstplayer.cpp') 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); -- cgit v1.2.1