From: Youness Alaoui Date: Tue, 29 Apr 2008 00:36:00 +0000 (+0000) Subject: [MOVED FROM GST-P-FARSIGHT] Robustness check, make sure the queue is not empty before... X-Git-Tag: 1.19.3~507^2~19490 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c57d2d70c3aefdef2228f370f782ae313a8c857;p=platform%2Fupstream%2Fgstreamer.git [MOVED FROM GST-P-FARSIGHT] Robustness check, make sure the queue is not empty before using the head element 20080429003600-4f0f6-708c654b65812caeb3612248dbe0b2e62567c250.gz --- diff --git a/gst/liveadder/liveadder.c b/gst/liveadder/liveadder.c index 12a82cb..67b817e 100644 --- a/gst/liveadder/liveadder.c +++ b/gst/liveadder/liveadder.c @@ -873,6 +873,7 @@ gst_live_live_adder_chain (GstPad *pad, GstBuffer *buffer) * we may not have to wait for as long */ if (adder->clock_id && + g_queue_peek_head (adder->buffers) != NULL && GST_BUFFER_TIMESTAMP (buffer) + skip < GST_BUFFER_TIMESTAMP (g_queue_peek_head (adder->buffers))) gst_clock_id_unschedule (adder->clock_id);