From ce4df5311b1e42038d469327dd6a229a997523c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 1 Mar 2017 12:08:58 +0200 Subject: [PATCH] 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. --- sys/decklink/gstdecklinkvideosink.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/decklink/gstdecklinkvideosink.cpp b/sys/decklink/gstdecklinkvideosink.cpp index 93cf0a5f92..7586bc3569 100644 --- a/sys/decklink/gstdecklinkvideosink.cpp +++ b/sys/decklink/gstdecklinkvideosink.cpp @@ -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; } }