<div dir="ltr">Hi,<br><br>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).<br>The following pipeline does not work:<br>
<br>gst-launch-0.10 videotestsrc ! video/x-raw-rgb, width=720, height=576 ! directdrawsink<br><br>It failed on the the <span style="color: rgb(0, 0, 153);">gst_directdraw_sink_set_caps</span> methods when creating the offscreen (<span style="color: rgb(0, 0, 153);">gst_directdraw_sink_check_offscreen_surface</span>):<br>
IDirectDraw7_CreateSurface returns : <br><br>DDERR_INVALIDPARAMS -><br>HRESULT: 0x80070057 (2147942487)<br>Name: E_INVALIDARG<br>Description: An invalid parameter was passed to the returning function<br>Severity code: Failed<br>
Facility Code: FACILITY_WIN32 (7)<br>Error Code: 0x0057 (87)<br><br><span style="color: rgb(0, 0, 153);">I tried other size and it failed only when the screen resoltuion size is less than the video source size.</span><br>
<br>I can add that it works on newer drivers, so to reproduce <u>just turn off the "device acceleration" </u>( in screen properties, advanced, Troubleshoot tab, move the slide to None, then apply).<br>Then try : <span style="color: rgb(0, 0, 153);">gst-launch-0.10 videotestsrc ! video/x-raw-rgb, width=1640, height=1080 ! directdrawsink</span> if your screen resolution is 1280 * 1024.<br>
<br><u>I haved tested on linux (to compare with ximagesink)</u>, and I forced the system to not use device acceleration (just use vesa instead of of the driver card), and it works fine.<br><br>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.<br>
<br>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.<br><br>So do I have to report a bug ?<br>
<br>J.<br><br><br><br><br></div>