Skip to content

Commit

Permalink
videoio: turn off syncronized sink in GStreamer
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabunin committed Dec 10, 2020
1 parent 8286d84 commit 55a2bcb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/videoio/src/cap_gstreamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,11 @@ bool GStreamerCapture::open(const String &filename_)
gst_app_sink_set_max_buffers(GST_APP_SINK(sink.get()), 1);
}

if (!manualpipeline)
{
gst_base_sink_set_sync(GST_BASE_SINK(sink.get()), FALSE);
}

//do not emit signals: all calls will be synchronous and blocking
gst_app_sink_set_emit_signals (GST_APP_SINK(sink.get()), FALSE);

Expand Down

0 comments on commit 55a2bcb

Please sign in to comment.