[chromecast] Fix probe segfault

This commit is contained in:
ejurgensen 2016-02-12 21:26:06 +01:00
parent 565d29529a
commit 48592406ed
1 changed files with 2 additions and 3 deletions

View File

@ -836,6 +836,7 @@ cast_status(struct cast_session *cs)
} }
cs->status_cb = NULL; cs->status_cb = NULL;
if (status_cb)
status_cb(cs->device, cs->output_session, state); status_cb(cs->device, cs->output_session, state);
} }
@ -1488,8 +1489,6 @@ cast_device_probe(struct output_device *device, output_status_cb cb)
struct cast_session *cs; struct cast_session *cs;
int ret; int ret;
DPRINTF(E_LOG, L_CAST, "Got probe request for %s\n", device->name);
cs = cast_session_make(device, AF_INET6, cb); cs = cast_session_make(device, AF_INET6, cb);
if (cs) if (cs)
{ {