video-converter: Only lock the thread pool mutex when running with more than 1 thread
authorSebastian Dröge <sebastian@centricular.com>
Fri, 24 Feb 2017 08:02:28 +0000 (10:02 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 24 Feb 2017 08:02:28 +0000 (10:02 +0200)
commit6d20fcc9df240f3b289c9d70b5624fadd745bfad
tree00a8fbfc75147baca6dffe798339c9f7ddffe761
parent49ac382b47bfd481621a44155f9533d46a189a26
video-converter: Only lock the thread pool mutex when running with more than 1 thread

There's no reason to lock anything if only the current thread is ever
going to do any work.
gst-libs/gst/video/video-converter.c