camerabin2: Prevent audiosrc from sending undesired eos
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Sun, 21 Aug 2011 17:41:28 +0000 (14:41 -0300)
committerLuciana Fujii Pontello <luciana.fujii@collabora.co.uk>
Tue, 6 Mar 2012 14:38:32 +0000 (09:38 -0500)
commita33749fde591483df6981328e21aef8e28c09c38
treeee037de498d58c09fce1e766d2e84706aee0f025
parentf093865e0879821c110d6b2a7d556133686572a2
camerabin2: Prevent audiosrc from sending undesired eos

Basesrc derived classes send an eos when they change state
from paused to ready and that breaks video recordings on camerabin2
as it makes the whole audio branch pads flushing.

Prevent it by using a pad probe that only allows the eos to pass
when it is caused by a stop-capture action.

Conflicts:

gst/camerabin2/gstcamerabin2.c
gst/camerabin2/gstcamerabin2.c
gst/camerabin2/gstcamerabin2.h