mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-31 19:08:30 +00:00
t/common: Don't destroy frame context on failure
This is handled later in the builder.
This commit is contained in:
parent
0b9a8ea860
commit
e58926662f
|
@ -500,7 +500,6 @@ stream_data_sources(struct lighthouse_system *lhs, struct xrt_prober *xp, struct
|
||||||
xrt_prober_list_video_devices(xp, on_video_device, lhs);
|
xrt_prober_list_video_devices(xp, on_video_device, lhs);
|
||||||
if (lhs->xfs == NULL) {
|
if (lhs->xfs == NULL) {
|
||||||
LH_WARN("Couldn't find Index camera at all. Is it plugged in?");
|
LH_WARN("Couldn't find Index camera at all. Is it plugged in?");
|
||||||
xrt_frame_context_destroy_nodes(&lhs->devices->xfctx);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -519,7 +518,6 @@ stream_data_sources(struct lighthouse_system *lhs, struct xrt_prober *xp, struct
|
||||||
|
|
||||||
if (!success) {
|
if (!success) {
|
||||||
LH_ERROR("Unable to start data streaming");
|
LH_ERROR("Unable to start data streaming");
|
||||||
xrt_frame_context_destroy_nodes(&lhs->devices->xfctx);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
|
|
Loading…
Reference in a new issue