Re: [FFmpeg-devel] [PATCH] lavd/sdl2: postpone sdl2 window creation

2023-10-09 Thread Zhao Zhili
> On Sep 19, 2023, at 14:32, Xiang, Haihao > wrote: > > On Ma, 2023-09-18 at 14:00 +0200, Andreas Rheinhardt wrote: >> Xiang, Haihao: >>> From: Haihao Xiang >>> >>> Since 2d924b3, sdl2_write_header() and sdl2_write_packet() are called >>> in two different threads. However SDL2 requires windo

Re: [FFmpeg-devel] [PATCH] lavd/sdl2: postpone sdl2 window creation

2023-09-18 Thread Xiang, Haihao
On Ma, 2023-09-18 at 14:00 +0200, Andreas Rheinhardt wrote: > Xiang, Haihao: > > From: Haihao Xiang > > > > Since 2d924b3, sdl2_write_header() and sdl2_write_packet() are called > > in two different threads. However SDL2 requires window creation and > > rendering should be done in the same thread

Re: [FFmpeg-devel] [PATCH] lavd/sdl2: postpone sdl2 window creation

2023-09-18 Thread Andreas Rheinhardt
Xiang, Haihao: > From: Haihao Xiang > > Since 2d924b3, sdl2_write_header() and sdl2_write_packet() are called > in two different threads. However SDL2 requires window creation and > rendering should be done in the same thread, otherwise it shows nothing > when specifying SDL2 output device. Modi

[FFmpeg-devel] [PATCH] lavd/sdl2: postpone sdl2 window creation

2023-09-17 Thread Xiang, Haihao
From: Haihao Xiang Since 2d924b3, sdl2_write_header() and sdl2_write_packet() are called in two different threads. However SDL2 requires window creation and rendering should be done in the same thread, otherwise it shows nothing when specifying SDL2 output device. $ ffmpeg -f lavfi -i yuvtestsrc