mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
[MOVED FROM GOOD] 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
4e309644e8
commit
0a7b745585
1 changed files with 5 additions and 1 deletions
|
@ -880,7 +880,11 @@ gst_directdraw_sink_show_frame (GstBaseSink * bsink, GstBuffer * buf)
|
|||
GST_CAT_WARNING_OBJECT (directdrawsink_debug, ddrawsink,
|
||||
"gst_directdraw_sink_show_frame failed locking surface %s",
|
||||
DDErrorString (hRes));
|
||||
return GST_FLOW_ERROR;
|
||||
|
||||
if (IDirectDrawSurface7_IsLost (ddrawsink->offscreen_surface) == DD_OK)
|
||||
return GST_FLOW_OK;
|
||||
else
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
|
||||
/* Write each line respecting the destination surface pitch */
|
||||
|
|
Loading…
Reference in a new issue