audiosrc: check for flushing state in provide_clock
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 10 Sep 2012 10:12:48 +0000 (12:12 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 10 Sep 2012 10:19:22 +0000 (12:19 +0200)
commit0ce33461c8494113bf401217a58afc78806dfc16
tree5a09ad5f2ce4455b7e1c37d33e916c051359049c
parent44dab50b7acbdaf76e4d1c3cd3c7b1ca0d4ddbe6
audiosrc: check for flushing state in provide_clock

Only provide a clock when we are not flushing, this means that we have posted a
PROVIDE_CLOCK message. We used to check if we were acquired but that doesn't
work anymore now that we do the negotiation async in the streaming thread: it's
possible that we are still negotiating when the pipeline asks us for a clock.
gst-libs/gst/audio/gstaudiobasesrc.c