utils: use temp var in fallback GST_WRITE_*() macros
authorTim-Philipp Müller <tim@centricular.com>
Wed, 16 Nov 2016 10:51:48 +0000 (10:51 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 16 Nov 2016 10:57:33 +0000 (10:57 +0000)
commit06b015b62ac8559958af566166c5b17f6c1ac17e
treecba9e6facfaefd4b882e13359b8f5f83d2a588d5
parent2e579a7c1bfd555fbbf5b27142bf16bc93429670
utils: use temp var in fallback GST_WRITE_*() macros

To make sure the value is only expanded/used once, in case
there are side effects to it, and to avoid calculating it
or looking it up multiple times if there is a calculation
or lookup involved.
gst/gstutils.h