raop: check if video_flush callback is defined

This commit is contained in:
fduncanh
2022-01-14 10:48:32 -05:00
parent 17749fe9ed
commit ad88a9daaf

View File

@@ -357,8 +357,10 @@ conn_destroy(void *ptr) {
/* This is done in case TEARDOWN was not called */
raop_rtp_mirror_destroy(conn->raop_rtp_mirror);
}
conn->raop->callbacks.video_flush(conn->raop->callbacks.cls);
if (conn->raop->callbacks.video_flush) {
conn->raop->callbacks.video_flush(conn->raop->callbacks.cls);
}
free(conn->local);
free(conn->remote);