v4l2sink: don't put functional code like ioctl calls into g_return_if_fail()
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 7 Jan 2011 01:35:45 +0000 (01:35 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 7 Jan 2011 01:35:45 +0000 (01:35 +0000)
commit09d19e7dcd4d9903422c5118be114a342a0a25a2
tree34323cd8411e6ca059aab4ad7d17db7694a9a3a2
parent8f501521c76e47b5029df253072c706550b25ec3
v4l2sink: don't put functional code like ioctl calls into g_return_if_fail()

These macros will expand to NOOPs given the right defines. Also,
g_return_if_fail() and friends are meant to be used to catch programming
errors (like invalid input to functions), not runtime error handling.
sys/v4l2/gstv4l2sink.c