[MOVED FROM GST-P-FARSIGHT] Robustness check, make sure the queue is not empty before...
authorYouness Alaoui <youness.alaoui@collabora.co.uk>
Tue, 29 Apr 2008 00:36:00 +0000 (00:36 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 17 Feb 2009 18:29:05 +0000 (19:29 +0100)
20080429003600-4f0f6-708c654b65812caeb3612248dbe0b2e62567c250.gz

gst/liveadder/liveadder.c

index 12a82cb..67b817e 100644 (file)
@@ -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);