rtpjitterbuffer: return correct type when assertion fails

This commit is contained in:
Miguel Angel Cabrera Moya 2011-06-24 11:54:29 +02:00 committed by Sebastian Dröge
parent 55cb5c2889
commit 977a5eee7a

View file

@ -699,7 +699,7 @@ rtp_jitter_buffer_pop (RTPJitterBuffer * jbuf, gint * percent)
{
GstBuffer *buf;
g_return_val_if_fail (jbuf != NULL, FALSE);
g_return_val_if_fail (jbuf != NULL, NULL);
buf = g_queue_pop_tail (jbuf->packets);
@ -727,7 +727,7 @@ rtp_jitter_buffer_peek (RTPJitterBuffer * jbuf)
{
GstBuffer *buf;
g_return_val_if_fail (jbuf != NULL, FALSE);
g_return_val_if_fail (jbuf != NULL, NULL);
buf = g_queue_peek_tail (jbuf->packets);