From 1c57d2d70c3aefdef2228f370f782ae313a8c857 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Tue, 29 Apr 2008 00:36:00 +0000 Subject: [PATCH] [MOVED FROM GST-P-FARSIGHT] Robustness check, make sure the queue is not empty before using the head element 20080429003600-4f0f6-708c654b65812caeb3612248dbe0b2e62567c250.gz --- gst/liveadder/liveadder.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.7.4