resindvd: Fix raciness in rsndvdbin when initially creating pads
authorJan Schmidt <thaytan@noraisin.net>
Wed, 13 May 2009 09:29:36 +0000 (10:29 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Thu, 14 May 2009 10:28:14 +0000 (11:28 +0100)
commitb769f22404ca1d566b38b50854f184b5eda628fd
treea1e1c1df95a107ea2bb673ccf8c592f1eaffbe70
parentb20a88702d2fb88886575cbeca24ae5684851ca4
resindvd: Fix raciness in rsndvdbin when initially creating pads

Protect pad exposure with a preroll lock to avoid situations
where no-more-pads is fired more than once, or fired just before
the last pad is actually added.
ext/resindvd/resindvdbin.c
ext/resindvd/resindvdbin.h