Diff between 9344ad5be80ae4bf3724a45e58e866ad540eb183 and f245d02b7a8db7010cb73a02ba60416efce0fd10
Changed Files
| File | Additions | Deletions | Status |
| audio/gateway.c | +6 | -2 | modified |
Full Patch
diff --git a/audio/gateway.c b/audio/gateway.c
index ca44576..b98dfba 100644
--- a/audio/gateway.c
+++ b/audio/gateway.c
@@ -760,8 +760,12 @@ struct gateway *gateway_init(struct audio_device *dev)
gboolean gateway_is_connected(struct audio_device *dev)
{
- return (dev && dev->gateway &&
- dev->gateway->state == GATEWAY_STATE_CONNECTED);
+ struct gateway *gw = dev->gateway;
+
+ if (gw->state == GATEWAY_STATE_CONNECTED)
+ return TRUE;
+
+ return FALSE;
}
gboolean gateway_is_active(struct audio_device *dev)