Enable threading in ffmpeg decoders that support it.
authorJan Schmidt <thaytan@noraisin.net>
Tue, 21 Jun 2011 04:33:29 +0000 (14:33 +1000)
committerJan Schmidt <thaytan@noraisin.net>
Tue, 21 Jun 2011 04:33:29 +0000 (14:33 +1000)
commit3a12092ae6eb09393413887cfab6dc1cfa196c20
tree60508f7f13a1722e87d2e8736eed319fd82d05a2
parent8e2404b8dfe1ed6c4a23573ec01de85604487d3c
Enable threading in ffmpeg decoders that support it.

Add a max-threads property, which defaults to '0 = auto'
Add a utility function taken from libschroedinger which sets
the ffmpeg worker thread count to match the computer processor
count by default.
ext/ffmpeg/gstffmpegdec.c
ext/ffmpeg/gstffmpegutils.c
ext/ffmpeg/gstffmpegutils.h