Fixed unused variable and parameter warnings.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>