# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/cxfe/hotfix-xine12.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 # --- T2-COPYRIGHT-END --- xine-lib 1.2 removed xine_gui_send_vo_data and xine_strdupa, send the GUI data to the video port and duplicate the post chain with alloca. --- a/cxfe.c +++ b/cxfe.c @@ -857,7 +857,7 @@ static void cxfe_run_x11() { 0, 0, &xpos, &ypos, &tmp_win); XUnlockDisplay(display); - xine_gui_send_vo_data(cxfe.stream, XINE_GUI_SEND_DRAWABLE_CHANGED, + xine_port_send_gui_data(cxfe.vo_port, XINE_GUI_SEND_DRAWABLE_CHANGED, (void*) window[fullscreen]); } @@ -988,7 +988,7 @@ static void cxfe_run_x11() { case Expose: if(xevent.xexpose.count != 0) break; - xine_gui_send_vo_data(cxfe.stream, XINE_GUI_SEND_EXPOSE_EVENT, &xevent); + xine_port_send_gui_data(cxfe.vo_port, XINE_GUI_SEND_EXPOSE_EVENT, &xevent); break; case ConfigureNotify: @@ -1015,7 +1015,7 @@ static void cxfe_run_x11() { } if(xevent.type == completion_event) { - xine_gui_send_vo_data(cxfe.stream, XINE_GUI_SEND_COMPLETION_EVENT, &xevent); + xine_port_send_gui_data(cxfe.vo_port, XINE_GUI_SEND_COMPLETION_EVENT, &xevent); } } } @@ -1285,8 +1285,8 @@ int main(int argc, char **argv) { xine_event_create_listener_thread(event_queue, event_listener, NULL); if (x11){ - xine_gui_send_vo_data(cxfe.stream, XINE_GUI_SEND_DRAWABLE_CHANGED, (void *) window[fullscreen]); - xine_gui_send_vo_data(cxfe.stream, XINE_GUI_SEND_VIDEOWIN_VISIBLE, (void *) 1); + xine_port_send_gui_data(cxfe.vo_port, XINE_GUI_SEND_DRAWABLE_CHANGED, (void *) window[fullscreen]); + xine_port_send_gui_data(cxfe.vo_port, XINE_GUI_SEND_VIDEOWIN_VISIBLE, (void *) 1); } if(pplugins_num) { --- a/post.c +++ b/post.c @@ -21,6 +21,7 @@ * The code is taken from xine-ui/src/fb/post.c at changed to work with cxfe */ +#include #include "post.h" #include "main.h" @@ -103,7 +104,8 @@ static post_element_t **pplugin_parse_an if(pchain && strlen(pchain)) { char *p; - xine_strdupa(post_chain, pchain); + post_chain = alloca(strlen(pchain) + 1); + strcpy(post_chain, pchain); while((p = xine_strsep(&post_chain, ";"))) {