Fix broken libiWmxSDK callback parameter handling
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Thu, 8 Oct 2009 04:08:48 +0000 (13:08 +0900)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 10 Oct 2009 12:41:47 +0000 (14:41 +0200)
commit88fdae52930912a3e81c3d3e412cc51051116de2
treebcf74383f2a00f89a365194dc1b238f0c867a0d2
parent0a1ab23cfbc98530f6036d5714fa557724e8e1d6
Fix broken libiWmxSDK callback parameter handling

libiWmxSDK broke AGAIN the callback model, by passing a 'device_id'
pointer that is not the original the callback was registered
with.

This makes it impossible to obtain the 'wmxsdk' that contains said
'device_id'.

Thus, implemented device_id_to_wmxsdk() by iterating over the list of
known wmxsdks looking for an index match.
plugins/iwmxsdk.c