audiobasesink: fix issue about eos handling during flushing
authoreunhae choi <eunhae1.choi@samsung.com>
Mon, 14 Sep 2015 06:25:11 +0000 (15:25 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 20 Oct 2015 07:16:20 +0000 (10:16 +0300)
commit7d11a78f06d76fb7d453cc62399514fbebc08f47
treea2a6f7d5278ecd201d82c78485552174187eece4
parentbca12f39b8ffab17140d99a375126c0aea04a9db
audiobasesink: fix issue about eos handling during flushing

If the flush-start is arrived during _eos_wait() in basesink,
the 'eos' flag is overwritten to TRUE after exiting the _eos_wait().
To resolve the overwritten issue,
the subclass doing the _eos_wait() call should return the right value.
If the eos flag is set to TRUE again, it will cause error(enter the eos flow)
of the following state changing from PAUSED to PLAYING in basesink.

https://bugzilla.gnome.org/show_bug.cgi?id=754980
gst-libs/gst/audio/gstaudiobasesink.c