decklinkvideosink: Don't error out if displaying the preroll frame fails

This seems to happen sometimes on some hardware, and is not really
critical as long as the scheduling of the normal frames works fine.

Only post a warning message for this case.
This commit is contained in:
Sebastian Dröge 2017-03-01 12:08:58 +02:00
parent 4d434c7db5
commit ce4df5311b

View file

@ -665,10 +665,9 @@ gst_decklink_video_sink_prepare (GstBaseSink * bsink, GstBuffer * buffer)
GST_LOG_OBJECT (self, "Showing video frame synchronously because PAUSED");
ret = self->output->output->DisplayVideoFrameSync (frame);
if (ret != S_OK) {
GST_ELEMENT_ERROR (self, STREAM, FAILED,
(NULL), ("Failed to show video frame synchronously: 0x%08x", ret));
flow_ret = GST_FLOW_ERROR;
goto out;
GST_ELEMENT_WARNING (self, STREAM, FAILED,
(NULL), ("Failed to show video frame synchronously: 0x%08x", ret));
ret = S_OK;
}
}