session: small cleanups

It's nicer to explicitly check for NULL on pointer types to make it
clear that it's a pointer and not a boolean.
This commit is contained in:
Wim Taymans 2014-03-05 14:28:26 +01:00
parent 5818a0de1a
commit d2f93e3afc

View file

@ -1628,7 +1628,7 @@ rtp_session_get_source_by_ssrc (RTPSession * sess, guint32 ssrc)
RTP_SESSION_LOCK (sess);
result = find_source (sess, ssrc);
if (result)
if (result != NULL)
g_object_ref (result);
RTP_SESSION_UNLOCK (sess);
@ -2293,7 +2293,7 @@ rtp_session_process_pli (RTPSession * sess, guint32 sender_ssrc,
return;
src = find_source (sess, sender_ssrc);
if (!src)
if (src == NULL)
return;
rtp_session_request_local_key_unit (sess, src, FALSE, current_time);
@ -3811,7 +3811,7 @@ rtp_session_request_key_unit (RTPSession * sess, guint32 ssrc,
RTP_SESSION_LOCK (sess);
src = find_source (sess, ssrc);
if (!src)
if (src == NULL)
goto no_source;
if (fir) {