mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
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:
parent
5818a0de1a
commit
d2f93e3afc
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue