bin: Pass structs we plan to modify around by pointer, not value
authorSebastian Dröge <sebastian@centricular.com>
Fri, 16 Jan 2015 18:17:31 +0000 (19:17 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 16 Jan 2015 18:17:31 +0000 (19:17 +0100)
commit5b2c79eda703b694632d0f4e19e59daafb18e311
treeba33461eadbde5d7e63237e10a06460ef5b8021d
parent0bd45dc4014d9fd89c3535dc692efab20e9c5644
bin: Pass structs we plan to modify around by pointer, not value

Otherwise the struct is going to be copied, which is not very efficient. And
also has the nice side effect that modifications of the struct might be
done in a copy, and we later use the original struct without the changes.

Caused LATENCY queries to always return the initialization values in one of my
tests, instead of the actual values reported by child elements.
gst/gstbin.c