mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
[MOVED FROM GST-P-FARSIGHT] Robustness check, make sure the queue is not empty before using the head element
20080429003600-4f0f6-708c654b65812caeb3612248dbe0b2e62567c250.gz
This commit is contained in:
parent
7a4034db44
commit
1c57d2d70c
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue