diff options
author | Francois Andriot <francois.andriot@free.fr> | 2012-05-05 11:11:35 +0200 |
---|---|---|
committer | Francois Andriot <francois.andriot@free.fr> | 2012-05-05 11:11:35 +0200 |
commit | 01d4b602ce624d96a0d9574e8e5f6fba53f2d9d9 (patch) | |
tree | 44a49e67fe0e2b487938d3af116a8804950c8ca7 /redhat/applications/kmplayer/kmplayer-3.5.13-fix_gcc47_compilation.patch | |
parent | 4a5605e233305678da64153c9664a0d06f00bcbe (diff) | |
download | tde-packaging-01d4b602ce624d96a0d9574e8e5f6fba53f2d9d9.tar.gz tde-packaging-01d4b602ce624d96a0d9574e8e5f6fba53f2d9d9.zip |
RHEL/Fedora: more application fixes ...
Diffstat (limited to 'redhat/applications/kmplayer/kmplayer-3.5.13-fix_gcc47_compilation.patch')
-rw-r--r-- | redhat/applications/kmplayer/kmplayer-3.5.13-fix_gcc47_compilation.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/redhat/applications/kmplayer/kmplayer-3.5.13-fix_gcc47_compilation.patch b/redhat/applications/kmplayer/kmplayer-3.5.13-fix_gcc47_compilation.patch new file mode 100644 index 000000000..02962e256 --- /dev/null +++ b/redhat/applications/kmplayer/kmplayer-3.5.13-fix_gcc47_compilation.patch @@ -0,0 +1,45 @@ +commit 5106117b5c1439d3fee08395c1a025f62d30a53e +Author: Darrell Anderson <humanreadable@yahoo.com> +Date: 1335631986 -0500 + + GCC 4.7 fixes. + +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); +diff --git a/src/kmplayerapp.cpp b/src/kmplayerapp.cpp +index 27b26cd..bdeac91 100644 +--- a/src/kmplayerapp.cpp ++++ b/src/kmplayerapp.cpp +@@ -17,6 +17,8 @@ + + #undef Always + ++#include <unistd.h> ++ + // include files for QT + #include <tqdatastream.h> + #include <tqregexp.h> |