mirror of
https://github.com/opencv/opencv.git
synced 2025-08-01 18:37:04 +08:00
videoio: turn off syncronized sink in GStreamer
This commit is contained in:
parent
8286d84fb1
commit
55a2bcbe15
@ -924,6 +924,11 @@ bool GStreamerCapture::open(const String &filename_)
|
|||||||
gst_app_sink_set_max_buffers(GST_APP_SINK(sink.get()), 1);
|
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
|
//do not emit signals: all calls will be synchronous and blocking
|
||||||
gst_app_sink_set_emit_signals (GST_APP_SINK(sink.get()), FALSE);
|
gst_app_sink_set_emit_signals (GST_APP_SINK(sink.get()), FALSE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user