After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 796812 - d3dvideosink: SetRenderRectangle bug
d3dvideosink: SetRenderRectangle bug
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.14.1
Other Windows
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-07-15 00:41 UTC by tomislavtustonic
Modified: 2018-11-03 14:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Gtk on Windows 10 (37.26 KB, image/jpeg)
2018-07-15 00:41 UTC, tomislavtustonic
Details
Gtk on Linux Mint (24.93 KB, image/jpeg)
2018-07-15 00:41 UTC, tomislavtustonic
Details
Modified BasicTutorial5.cs (15.59 KB, text/plain)
2018-07-15 00:43 UTC, tomislavtustonic
Details

Description tomislavtustonic 2018-07-15 00:41:12 UTC
Created attachment 373057 [details]
Gtk on Windows 10

It seems that there's a bug in d3dvideosink when setting render rectangle.

I have modified
https://github.com/GStreamer/gstreamer-sharp/blob/master/samples/BasicTutorial5.cs
to set the render rectangle, like this:

            VideoOverlayAdapter adapter = new
VideoOverlayAdapter(overlay.Handle);
            adapter.WindowHandle = windowHandle;
            adapter.SetRenderRectangle(50, 50, 427, 240);
            adapter.HandleEvents(true);

I expected that the video will be rendered in the 427x240 rectangle, at the
position 50,50, but there is a correct rectangle at the position, and video
is moved to the 50,50 inside this rectangle. The same happens in the
WinForms version of the sample.

It looks OK when running on Linux Mint 19.
Comment 1 tomislavtustonic 2018-07-15 00:41:46 UTC
Created attachment 373058 [details]
Gtk on Linux Mint
Comment 2 tomislavtustonic 2018-07-15 00:43:07 UTC
Created attachment 373059 [details]
Modified BasicTutorial5.cs

Sample is modified to use render rectangle and show a red background.
Comment 3 Sebastian Dröge (slomo) 2018-07-16 06:55:22 UTC
Yes that misbehaves on the d3d side. Something with the render_rect related code in here seems to not work completely right: https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/sys/d3dvideosink/d3dhelpers.c, in d3d_stretch_and_copy(). The case at line 1809 does not even consider the x/y of the render rectangle.
Comment 4 GStreamer system administrator 2018-11-03 14:28:00 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/752.