queue2: add range only on sinkpad
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 11 Apr 2012 10:00:10 +0000 (12:00 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 11 Apr 2012 10:45:37 +0000 (12:45 +0200)
commit463a8d9abf26969e44b2b146802d19802f7c06aa
treecca8883f4fd485e0da1ad456eb12aa97c53a20b3
parente3ca88ea7b42381ce0ab018713f67ecc6181d78c
queue2: add range only on sinkpad

Only add the range when we receive a segment event on the sinkpad. The add_range
method will modify the write position, which only makes sense to do on the
sinkpad.
plugins/elements/gstqueue2.c