tests: add and remove pads only once
authorWim Taymans <wtaymans@redhat.com>
Fri, 9 May 2014 13:08:48 +0000 (15:08 +0200)
committerWim Taymans <wtaymans@redhat.com>
Fri, 9 May 2014 13:13:54 +0000 (15:13 +0200)
commitb8165dbd6035e4bf4924e68d91b799713689411f
tree1e50823d492e66f97ec79bb666585e50e0f4f7ff
parentaec1b42c4e59ad548a3d39b561c775fc19eaa776
tests: add and remove pads only once

In this test we simulate a dynamic pad by watching the caps event.
Because of renegotiation in the base payloader now, this caps is sent
multiple times but we can only deal with 1 invocation, use a variable to
only 'add and remove' the pad once.
tests/check/gst/media.c