mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 17:18:15 +00:00
[MOVED FROM GOOD] sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_setup_ddraw): Do IDirectDrawClipper_SetHWnd() if the window I...
Original commit message from CVS: patch by: Haakon Sporsheim <haakon.sporsheim at tandberg com> * sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_setup_ddraw): Do IDirectDrawClipper_SetHWnd() if the window ID has already been set after creating the clipper.
This commit is contained in:
parent
0a7b745585
commit
934179d813
1 changed files with 3 additions and 0 deletions
|
@ -1308,6 +1308,9 @@ gst_directdraw_sink_setup_ddraw (GstDirectDrawSink * ddrawsink)
|
|||
hRes = IDirectDraw7_CreateClipper (ddrawsink->ddraw_object, 0,
|
||||
&ddrawsink->clipper, NULL);
|
||||
|
||||
if (hRes == DD_OK && ddrawsink->video_window)
|
||||
IDirectDrawClipper_SetHWnd (ddrawsink->clipper, 0, ddrawsink->video_window);
|
||||
|
||||
/* create our primary surface */
|
||||
if (!gst_directdraw_sink_check_primary_surface (ddrawsink))
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue