timeline-pipeline: use downstream block probe to avoid deadlock on duration query

This commit is contained in:
Nicolas Dufresne 2012-09-07 12:58:19 -04:00 committed by Tim-Philipp Müller
parent b3e1bd5dbb
commit 76ccc417c8

View file

@ -483,8 +483,8 @@ pad_added_cb (GstElement * timeline, GstPad * pad, GESTimelinePipeline * self)
}
chain->blocked_pad = tmppad;
GST_DEBUG_OBJECT (tmppad, "blocking pad");
chain->probe_id = gst_pad_add_probe (tmppad, GST_PAD_PROBE_TYPE_BLOCK,
pad_blocked, NULL, NULL);
chain->probe_id = gst_pad_add_probe (tmppad,
GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM, pad_blocked, NULL, NULL);
GST_DEBUG ("Reconfiguring playsink");