diff options
author | Francois Andriot <francois.andriot@free.fr> | 2012-11-24 09:58:05 +0100 |
---|---|---|
committer | Francois Andriot <francois.andriot@free.fr> | 2012-11-24 09:58:05 +0100 |
commit | 32fb770ae4ed0851491a59df5e23e27fb8afdadf (patch) | |
tree | c36a3226a9dd6588d754bd3b0dccacf89e0589b3 /redhat/applications/kmplayer/kmplayer-3.5.13.1-fix_xine12_support.patch | |
parent | e7f51ead5a067b6e3ac4fc64edc734a82711f2d2 (diff) | |
download | tde-packaging-32fb770ae4ed0851491a59df5e23e27fb8afdadf.tar.gz tde-packaging-32fb770ae4ed0851491a59df5e23e27fb8afdadf.zip |
RPM: add PCLinuxOS support
Diffstat (limited to 'redhat/applications/kmplayer/kmplayer-3.5.13.1-fix_xine12_support.patch')
-rw-r--r-- | redhat/applications/kmplayer/kmplayer-3.5.13.1-fix_xine12_support.patch | 102 |
1 files changed, 100 insertions, 2 deletions
diff --git a/redhat/applications/kmplayer/kmplayer-3.5.13.1-fix_xine12_support.patch b/redhat/applications/kmplayer/kmplayer-3.5.13.1-fix_xine12_support.patch index c0b0edc76..1dd604c1a 100644 --- a/redhat/applications/kmplayer/kmplayer-3.5.13.1-fix_xine12_support.patch +++ b/redhat/applications/kmplayer/kmplayer-3.5.13.1-fix_xine12_support.patch @@ -1,5 +1,7 @@ ---- kmplayer-3.5.13.1/src/xineplayer.cpp.ORI 2012-10-04 19:44:38.403679339 +0200 -+++ kmplayer-3.5.13.1/src/xineplayer.cpp 2012-10-04 19:48:14.399221962 +0200 +Index: b/src/xineplayer.cpp +=================================================================== +--- a/src/xineplayer.cpp 2012-10-30 18:39:16.000000000 +0000 ++++ b/src/xineplayer.cpp 2012-11-03 17:56:01.760234144 +0000 @@ -528,7 +528,11 @@ xine_event_create_listener_thread (event_queue, event_listener, NULL); if (mrl == "cdda:/") { @@ -12,3 +14,99 @@ running = 1; for (int i = 0; i < nr; i++) { TQString m (mrls[i]); +@@ -863,10 +867,10 @@ + case XK_p: // previous + mutex.lock (); + if (stream) { +- xine_event_t xine_event = { +- XINE_EVENT_INPUT_PREVIOUS, +- stream, 0L, 0, { 0, 0 } +- }; ++ xine_event_t xine_event; ++ memset(&xine_event, 0, sizeof(xine_event)); ++ xine_event.type = XINE_EVENT_INPUT_PREVIOUS; ++ xine_event.stream = stream; + xine_event_send (stream, &xine_event); + } + mutex.unlock (); +@@ -875,10 +879,10 @@ + case XK_n: // next + mutex.lock (); + if (stream) { +- xine_event_t xine_event = { +- XINE_EVENT_INPUT_NEXT, +- stream, 0L, 0, { 0, 0 } +- }; ++ xine_event_t xine_event; ++ memset(&xine_event, 0, sizeof(xine_event)); ++ xine_event.type = XINE_EVENT_INPUT_NEXT; ++ xine_event.stream = stream; + xine_event_send (stream, &xine_event); + } + mutex.unlock (); +@@ -887,10 +891,10 @@ + case XK_u: // up menu + mutex.lock (); + if (stream) { +- xine_event_t xine_event = { +- XINE_EVENT_INPUT_MENU1, +- stream, 0L, 0, { 0, 0 } +- }; ++ xine_event_t xine_event; ++ memset(&xine_event, 0, sizeof(xine_event)); ++ xine_event.type = XINE_EVENT_INPUT_MENU1; ++ xine_event.stream = stream; + xine_event_send (stream, &xine_event); + } + mutex.unlock (); +@@ -899,10 +903,10 @@ + case XK_r: // root menu + mutex.lock (); + if (stream) { +- xine_event_t xine_event = { +- XINE_EVENT_INPUT_MENU3, +- stream, 0L, 0, { 0, 0 } +- }; ++ xine_event_t xine_event; ++ memset(&xine_event, 0, sizeof(xine_event)); ++ xine_event.type = XINE_EVENT_INPUT_MENU3; ++ xine_event.stream = stream; + xine_event_send (stream, &xine_event); + } + mutex.unlock (); +@@ -985,11 +989,12 @@ + data.x = rect.x; + data.y = rect.y; + data.button = 0; +- xine_event_t xine_event = { +- XINE_EVENT_INPUT_MOUSE_MOVE, +- stream, &data, sizeof (xine_input_data_t), +- { 0 , 0 } +- }; ++ xine_event_t xine_event; ++ memset(&xine_event, 0, sizeof(xine_event)); ++ xine_event.type = XINE_EVENT_INPUT_MOUSE_MOVE; ++ xine_event.stream = stream; ++ xine_event.data = &data; ++ xine_event.data_length = sizeof (xine_input_data_t); + mutex.lock (); + xine_event_send (stream, &xine_event); + mutex.unlock (); +@@ -1023,11 +1028,12 @@ + data.x = rect.x; + data.y = rect.y; + data.button = 1; +- xine_event_t xine_event = { +- XINE_EVENT_INPUT_MOUSE_BUTTON, +- stream, &data, sizeof (xine_input_data_t), +- { 0, 0 } +- }; ++ xine_event_t xine_event; ++ memset(&xine_event, 0, sizeof(xine_event)); ++ xine_event.type = XINE_EVENT_INPUT_MOUSE_BUTTON; ++ xine_event.stream = stream; ++ xine_event.data = &data; ++ xine_event.data_length = sizeof (xine_input_data_t); + mutex.lock (); + xine_event_send (stream, &xine_event); + mutex.unlock (); |