From 462735147d948ed490aae315a0b573a523f5032d Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Thu, 28 Mar 2019 05:52:21 +0300 Subject: [PATCH] another place for SEP_INFO --- src/stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stream.c b/src/stream.c index 698b3ec..ee449c6 100644 --- a/src/stream.c +++ b/src/stream.c @@ -376,12 +376,12 @@ static int _stream_init_loop(struct stream_t *stream, struct workers_pool_t *poo } static int _stream_init(struct stream_t *stream, struct workers_pool_t *pool) { - SEP_INFO('='); - _stream_destroy_workers(stream, pool); device_switch_capturing(stream->dev, false); device_close(stream->dev); + SEP_INFO('='); + if (device_open(stream->dev) < 0) { goto error; }