gst/gstpad.c: Follow-up to Wim's patch, solves deadlock for blocked and flushing pads

Original commit message from CVS:
* gst/gstpad.c: (handle_pad_block):
Follow-up to Wim's patch, solves deadlock for blocked and flushing pads
This commit is contained in:
Edward Hervey 2005-11-02 19:04:20 +00:00
parent 563477a64e
commit 3b80a92550
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-11-02 Edward Hervey <edward@fluendo.com>
* gst/gstpad.c: (handle_pad_block):
Follow-up to Wim's patch, solves deadlock for blocked and flushing pads
2005-11-02 Wim Taymans <wim@fluendo.com>
* gst/gstbin.c:

View file

@ -2981,6 +2981,8 @@ handle_pad_block (GstPad * pad)
}
while (GST_PAD_IS_BLOCKED (pad)) {
if (GST_PAD_IS_FLUSHING (pad))
goto flushing;
GST_PAD_BLOCK_WAIT (pad);
if (GST_PAD_IS_FLUSHING (pad))
goto flushing;