[chromecast] Fix probe segfault
This commit is contained in:
parent
565d29529a
commit
48592406ed
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue