Flowblade needs SDL 1.2 for video display and there is no clear path
forward for replacement known to me.

The problem is the piece of code in SDL 1.2 below. That functionality
has not worked SDL 2.0 when I have tried to get it to display video.
SDL 2 only allows creating new windows for video display, not display
video on top of some X11 window that is connected to the widget
Flowblade uses to show video.

---
static int X11_CreateWindow(_THIS, SDL_Surface *screen,
                int w, int h, int bpp, Uint32 flags)
{
    int i, depth;
    Visual *vis;
    int vis_change;
    Uint32 Amask;

    /* If a window is already present, destroy it and start fresh */
    if ( SDL_Window ) {
        X11_DestroyWindow(this, screen);
        switch_waiting = 0; /* Prevent jump back to now-meaningless state. */
    }

    /* See if we have been given a window id */
    if ( SDL_windowid ) {
        SDL_Window = SDL_strtol(SDL_windowid, NULL, 0);
    } else {
        SDL_Window = 0;
    }
...
---

this is from SDL-1.2/src/video/x11/SDL_x11video.c

I don't think this is ever going to work in SDL2 because Wayland does
not have window ids for widgets. For Flowblade it is best to keep SDL
1.2 to display video for X11 and find another solution for Wayland.

Janne


_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to