It seems that there can be sink-input existing
without origin, so we have to check for the
origins existence.
Change-Id: I60a80c3fe06bab80e1a7934f2aa0ff9ff84209a9
origin = pa_utils_get_stream_origin(u, sinp);
stream_node = pa_discover_find_node_by_ptr(u, origin);
- if ((class = pa_utils_get_stream_class(sinp->proplist)) > 0) {
+ if (origin == NULL) {
+ pa_log_debug("could not find origin for sink-input %d", sinp->index);
+ }
+ else if ((class = pa_utils_get_stream_class(sinp->proplist)) > 0) {
corked = stream_node ? !stream_node->rset.grant : false;
muted = (sinp->muted || pa_hashmap_get(sinp->volume_factor_items,