d3d11screencapturesrc: Specify PAR 1/1 to template caps
authorSeungha Yang <seungha@centricular.com>
Tue, 8 Nov 2022 10:26:39 +0000 (19:26 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 9 Nov 2022 11:22:06 +0000 (11:22 +0000)
commit99b83f33f7415ade98c0f17a4c7fb95931adc1ef
tree7a3148903139c77deda71c5617a2360caf49f834
parent7f4f11503c48cc7c1a88beb94512bfced318a2b0
d3d11screencapturesrc: Specify PAR 1/1 to template caps

... otherwise PAR can be wrongly signalled during the negotiation

Fixing below pipeline when desktop resolution is not 640x480
gst-launch-1.0.exe \
  d3d11screencapturesrc ! videoscale !
  video/x-raw,width=640,height=480,pixel-aspect-ratio=1/1 ! d3d11videosink

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3360>
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11screencapturedevice.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11screencapturesrc.cpp