提交 f7436876 编写于 作者: L Leonid Kegulskiy 提交者: Mauro Carvalho Chehab

[media] hdpvr: Added some error handling in hdpvr_start_streaming()

Signed-off-by: NLeonid Kegulskiy <leo@lumanate.com>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 ccc40ed7
......@@ -298,8 +298,12 @@ static int hdpvr_start_streaming(struct hdpvr_device *dev)
0xb8, 0x38, 0x1, 0, NULL, 0, 8000);
v4l2_dbg(MSG_BUFFER, hdpvr_debug, &dev->v4l2_dev,
"encoder start control request returned %d\n", ret);
if (ret < 0)
return ret;
hdpvr_config_call(dev, CTRL_START_STREAMING_VALUE, 0x00);
ret = hdpvr_config_call(dev, CTRL_START_STREAMING_VALUE, 0x00);
if (ret)
return ret;
dev->status = STATUS_STREAMING;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册