jsseek: Set joystick io encoding to 'NULL'

Fix problems with newer glib reporting bad encodings on the binary
data emerging from the joystick device fd.
This commit is contained in:
Jan Schmidt 2010-06-20 23:53:38 +10:00
parent 818f395402
commit 344df0b217

View file

@ -3024,6 +3024,7 @@ main (int argc, char **argv)
{
GIOChannel *js_watch = g_io_channel_unix_new (js_fd);
g_io_channel_set_encoding (js_watch, NULL, NULL);
g_io_add_watch (js_watch, G_IO_IN, read_joystick, NULL);
}