gstreamer/subprojects/gst-plugins-bad/sys/directshow
Nirbheek Chauhan d4f8067064 directshow: Fix build error with glib 2.75 and newer
Starting with glib 2.75, `NULL` is `nullptr`, which cannot be
implicitly coerced to `0`, unlike `NULL`. So explicitly pass `0`.

```
[3206/4524] Compiling C++ object subprojects/gst-plugins-bad/sys/directshow/gstdirectshow.dll.p/dshowvideosink.cpp.obj
FAILED: subprojects/gst-plugins-bad/sys/directshow/gstdirectshow.dll.p/dshowvideosink.cpp.obj
"cl" "-Isubprojects\gst-plugins-bad\sys\directshow\gstdirectshow.dll.p" "-Isubprojects\gst-plugins-bad\sys\directshow" "-I..\subprojects\gst-plugins-bad\sys\directshow" "-Isubprojects\gst-plugins-bad" "-I..\subprojects\gst-plugins-bad" "-Isubprojects\gst-plugins-base\gst-libs" "-I..\subprojects\gst-plugins-base\gst-libs" "-Isubprojects\gstreamer\libs" "-I..\subprojects\gstreamer\libs" "-Isubprojects\gstreamer" "-I..\subprojects\gstreamer" "-Isubprojects\orc" "-I..\subprojects\orc" "-I..\subprojects\gst-plugins-bad\sys\directshow\strmbase\baseclasses" "-Isubprojects\gst-plugins-base\gst-libs\gst\video" "-Isubprojects\gstreamer\gst" "-Isubprojects\gst-plugins-base\gst-libs\gst\audio" "-Isubprojects\gst-plugins-base\gst-libs\gst\tag" "-IC:/gst-install/include/glib-2.0" "-IC:/gst-install/lib/glib-2.0/include" "-IC:/gst-install/include" "/MD" "/nologo" "/showIncludes" "/utf-8" "/W2" "/EHsc" "/O2" "/Zi" "/wd4018" "/wd4146" "/wd4244" "/wd4305" "/utf-8" "/we4002" "/we4003" "/we4013" "/we4020" "/we4027" "/we4029" "/we4033" "/we4045" "/we4047" "/we4053" "/we4062" "/we4098" "/we4101" "/we4189" "/utf-8" "-D_MBCS" "/wd4189" "/wd4456" "/wd4701" "/wd4703" "/wd4706" "/wd4996" "-DHAVE_CONFIG_H" "/Fdsubprojects\gst-plugins-bad\sys\directshow\gstdirectshow.dll.p\dshowvideosink.cpp.pdb" /Fosubprojects/gst-plugins-bad/sys/directshow/gstdirectshow.dll.p/dshowvideosink.cpp.obj "/c" ../subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp
../subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp(62): warning C5051: attribute 'noinline' requires at least '/std:c++20'; ignored
../subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp(123): error C2664: 'LRESULT SendMessageA(HWND,UINT,WPARAM,LPARAM)': cannot convert argument 3 from 'nullptr' to 'WPARAM'
../subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp(123): note: A native nullptr can only be converted to bool or, using reinterpret_cast, to an integral type
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winuser.h(3690): note: see declaration of 'SendMessageA'
../subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp(635): error C2664: 'BOOL SystemParametersInfoA(UINT,UINT,PVOID,UINT)': cannot convert argument 2 from 'nullptr' to 'UINT'
../subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp(635): note: A native nullptr can only be converted to bool or, using reinterpret_cast, to an integral type
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winuser.h(13153): note: see declaration of 'SystemParametersInfoA'
../subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp(1593): error C2664: 'LRESULT SendMessageA(HWND,UINT,WPARAM,LPARAM)': cannot convert argument 3 from 'nullptr' to 'WPARAM'
../subprojects/gst-plugins-bad/sys/directshow/dshowvideosink.cpp(1593): note: A native nullptr can only be converted to bool or, using reinterpret_cast, to an integral type
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winuser.h(3690): note: see declaration of 'SendMessageA'
```

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3528>
2022-12-05 14:18:14 +00:00
..
strmbase Add directshow strmbase library source code from Microsoft repo 2022-02-18 14:59:25 +01:00
dshowdeviceprovider.cpp directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
dshowdeviceprovider.h directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
dshowvideofakesrc.cpp directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
dshowvideofakesrc.h directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
dshowvideosink.cpp directshow: Fix build error with glib 2.75 and newer 2022-12-05 14:18:14 +00:00
dshowvideosink.h directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
gstdshow.cpp directshow: Validate enumerated AM_MEDIA_TYPE struct 2022-11-04 10:01:39 +00:00
gstdshow.h directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
gstdshowaudiodec.cpp directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
gstdshowaudiodec.h directshow: Fix build warnings 2022-02-19 19:54:52 +00:00
gstdshowaudiosrc.cpp directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
gstdshowaudiosrc.h directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
gstdshowfakesink.cpp directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
gstdshowfakesink.h directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
gstdshowfakesrc.cpp directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
gstdshowfakesrc.h directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
gstdshowutil.cpp directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
gstdshowutil.h directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
gstdshowvideodec.cpp directshow: Fix for division by zero 2022-03-02 19:35:49 +00:00
gstdshowvideodec.h directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
gstdshowvideosrc.cpp directshow: Fix for uninitialized debug category warning 2022-05-30 12:00:43 +00:00
gstdshowvideosrc.h directshow: Merge plugins into single directshow plugin 2022-02-19 19:54:52 +00:00
meson.build meson: Call pkgconfig.generate in the loop where we declare plugins dependencies 2022-09-01 21:17:35 +00:00
plugin.cpp directshow: Demote rank of device provider to GST_RANK_NONE 2022-11-09 00:30:45 +00:00