Re: [FFmpeg-devel] [PATCH] gdigrab: Fix hwnd parameter issues

2023-12-18 Thread Martin Storsjö
On Mon, 18 Dec 2023, Stefano Sabatini wrote: On date Monday 2023-12-18 19:05:17 -0300, James Almer wrote: On 12/18/2023 5:54 AM, Martin Storsjö wrote: Converting from an integer to HWND (which is a pointer) requires an explicit cast, otherwise Clang errors out like this: src/libavdevice/

Re: [FFmpeg-devel] [PATCH] gdigrab: Fix hwnd parameter issues

2023-12-18 Thread Stefano Sabatini
On date Monday 2023-12-18 19:05:17 -0300, James Almer wrote: > On 12/18/2023 5:54 AM, Martin Storsjö wrote: > > Converting from an integer to HWND (which is a pointer) requires > > an explicit cast, otherwise Clang errors out like this: > > > > src/libavdevice/gdigrab.c:280:14: error: incompa

Re: [FFmpeg-devel] [PATCH] gdigrab: Fix hwnd parameter issues

2023-12-18 Thread James Almer
On 12/18/2023 5:54 AM, Martin Storsjö wrote: Converting from an integer to HWND (which is a pointer) requires an explicit cast, otherwise Clang errors out like this: src/libavdevice/gdigrab.c:280:14: error: incompatible integer to pointer conversion assigning to 'HWND' (aka 'struct HWND__

[FFmpeg-devel] [PATCH] gdigrab: Fix hwnd parameter issues

2023-12-18 Thread Martin Storsjö
Converting from an integer to HWND (which is a pointer) requires an explicit cast, otherwise Clang errors out like this: src/libavdevice/gdigrab.c:280:14: error: incompatible integer to pointer conversion assigning to 'HWND' (aka 'struct HWND__ *') from 'long' [-Wint-conversion] 280 |