Hi,
In a particular context that I can explain later if needed, I have a screen with resoltuion equals to 640*480 and the video source size is 720*576 (> 640*480).
The following pipeline does not work:
gst-launch-0.10 videotestsrc ! video/x-raw-rgb, width=720, height=576 ! directdrawsink
It failed on the the gst_directdraw_sink_set_caps methods when creating the offscreen (gst_directdraw_sink_check_offscreen_surface):
IDirectDraw7_CreateSurface returns :
DDERR_INVALIDPARAMS ->
HRESULT: 0x80070057 (2147942487)
Name: E_INVALIDARG
Description: An invalid parameter was passed to the returning function
Severity code: Failed
Facility Code: FACILITY_WIN32 (7)
Error Code: 0x0057 (87)
I tried other size and it failed only when the screen resoltuion size is less than the video source size.
I can add that it works on newer drivers, so to reproduce just turn off the "device acceleration" ( in screen properties, advanced, Troubleshoot tab, move the slide to None, then apply).
Then try : gst-launch-0.10 videotestsrc ! video/x-raw-rgb, width=1640, height=1080 ! directdrawsink if your screen resolution is 1280 * 1024.
I haved tested on linux (to compare with ximagesink), and I forced the system to not use device acceleration (just use vesa instead of of the driver card), and it works fine.
Ok then even if you tell me now : "it 's not a bug in directdrawsink and it's not possible to make it work on win32", I can add that I am also using the gstxoverlay interface to see the video in a smaller window size than the video capture size. So it should be possible.
And so the problem is from directdrawsink implementation which does not give a chance to work when "gst_directdraw_sink_check_offscreen_surface" failed in the "set_caps" method.
So do I have to report a bug ?
J.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel