uridecodebin: handle raw sources about-to-finish signals
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 22 Jan 2010 15:23:43 +0000 (16:23 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 22 Jan 2010 15:36:46 +0000 (16:36 +0100)
commit12af63394225526e0d98267978007e726040dc2f
treea577baf161e2bae8fbdc6e9d13ca6cb0ec1badac
parent8ebb6be80314bcc9d17ca4f7688c395fe10d7929
uridecodebin: handle raw sources about-to-finish signals

When we are dealing with a source that produces raw audio/video, we don't use a
decodebin2 to decode the data and we thus don't have the drained/about-to-finish
signal emited. To fix this, we add a padprobe on the source pads and emit the
drained signal ourselves. This then makes playbin2 emit the about-to-finish
signal for raw sources such as cdda://

Fixes #607116
gst/playback/gsturidecodebin.c