rtpjitterbuffer: return correct type when assertion fails
authorMiguel Angel Cabrera Moya <madmac2501@gmail.com>
Fri, 24 Jun 2011 09:54:29 +0000 (11:54 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 24 Jun 2011 09:59:01 +0000 (11:59 +0200)
gst/rtpmanager/rtpjitterbuffer.c

index 341388b..f6382fc 100644 (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);