提交 acc37e8f 编写于 作者: M Max Kellermann 提交者: Mauro Carvalho Chehab

[media] media/dvb-core: forward media_create_pad_links() return value

Instead of always return -ENOMEM, return the real error that should
come from media_create_pad_link().
Signed-off-by: NMax Kellermann <max@duempel.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 5f61ff86
......@@ -676,13 +676,13 @@ int dvb_create_media_graph(struct dvb_adapter *adap,
demux, 0, MEDIA_LNK_FL_ENABLED,
false);
if (ret)
return -ENOMEM;
return ret;
}
if (demux && ca) {
ret = media_create_pad_link(demux, 1, ca,
0, MEDIA_LNK_FL_ENABLED);
if (ret)
return -ENOMEM;
return ret;
}
/* Create demux links for each ringbuffer/pad */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册