mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_show_frame): Added checking of surface lost case after an uns...
Original commit message from CVS: patch by: Haakon Sporsheim <haakon.sporsheim at tandberg com> * sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_show_frame): Added checking of surface lost case after an unsuccessful IDirectDrawSurface7_Lock() call. If surface is lost, return GST_FLOW_OK.
This commit is contained in:
parent
dd1f932e3e
commit
368834ab4e
2 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2008-05-07 Ole André Vadla Ravnås <ole.andre.ravnas at tandberg com>
|
||||||
|
|
||||||
|
patch by: Haakon Sporsheim <haakon.sporsheim at tandberg com>
|
||||||
|
|
||||||
|
* sys/directdraw/gstdirectdrawsink.c (gst_directdraw_sink_show_frame):
|
||||||
|
Added checking of surface lost case after an unsuccessful
|
||||||
|
IDirectDrawSurface7_Lock() call.
|
||||||
|
If surface is lost, return GST_FLOW_OK.
|
||||||
|
|
||||||
2008-05-07 Ole André Vadla Ravnås <ole.andre.ravnas at tandberg com>
|
2008-05-07 Ole André Vadla Ravnås <ole.andre.ravnas at tandberg com>
|
||||||
|
|
||||||
patch by: Haakon Sporsheim <haakon.sporsheim at tandberg com>
|
patch by: Haakon Sporsheim <haakon.sporsheim at tandberg com>
|
||||||
|
|
|
@ -880,6 +880,10 @@ gst_directdraw_sink_show_frame (GstBaseSink * bsink, GstBuffer * buf)
|
||||||
GST_CAT_WARNING_OBJECT (directdrawsink_debug, ddrawsink,
|
GST_CAT_WARNING_OBJECT (directdrawsink_debug, ddrawsink,
|
||||||
"gst_directdraw_sink_show_frame failed locking surface %s",
|
"gst_directdraw_sink_show_frame failed locking surface %s",
|
||||||
DDErrorString (hRes));
|
DDErrorString (hRes));
|
||||||
|
|
||||||
|
if (IDirectDrawSurface7_IsLost (ddrawsink->offscreen_surface) == DD_OK)
|
||||||
|
return GST_FLOW_OK;
|
||||||
|
else
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue