From 3469171e1667d96edde16a948ea16439205c8557 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 23 Sep 2006 08:53:30 +0000 Subject: [PATCH] gst/playback/gstplaybasebin.c: Improve buffering a bit by avoiding a deadlock because we cannot assume the underrun i... Original commit message from CVS: * gst/playback/gstplaybasebin.c: (gen_preroll_element): Improve buffering a bit by avoiding a deadlock because we cannot assume the underrun is always called. --- ChangeLog | 6 ++++++ gst/playback/gstplaybasebin.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 398d164de8..9929e36dcd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-09-23 Wim Taymans + + * gst/playback/gstplaybasebin.c: (gen_preroll_element): + Improve buffering a bit by avoiding a deadlock because we cannot assume + the underrun is always called. + 2006-09-23 Wim Taymans Patch by: Young-Ho Cha diff --git a/gst/playback/gstplaybasebin.c b/gst/playback/gstplaybasebin.c index ef0035f085..6b541dc8ec 100644 --- a/gst/playback/gstplaybasebin.c +++ b/gst/playback/gstplaybasebin.c @@ -766,6 +766,8 @@ gen_preroll_element (GstPlayBaseBin * play_base_bin, * fire an underrun. */ g_signal_connect (G_OBJECT (preroll), "underrun", G_CALLBACK (queue_out_of_data), play_base_bin); + /* configure threshold and callbacks */ + queue_out_of_data (preroll, play_base_bin); } preroll_pad = gst_element_get_pad (preroll, "src");