It's nicer to explicitly check for NULL on pointer types to make it
clear that it's a pointer and not a boolean.
RTP_SESSION_LOCK (sess);
result = find_source (sess, ssrc);
- if (result)
+ if (result != NULL)
g_object_ref (result);
RTP_SESSION_UNLOCK (sess);
return;
src = find_source (sess, sender_ssrc);
- if (!src)
+ if (src == NULL)
return;
rtp_session_request_local_key_unit (sess, src, FALSE, current_time);
RTP_SESSION_LOCK (sess);
src = find_source (sess, ssrc);
- if (!src)
+ if (src == NULL)
goto no_source;
if (fir) {