jsseek: Set joystick io encoding to 'NULL'
authorJan Schmidt <thaytan@noraisin.net>
Sun, 20 Jun 2010 13:53:38 +0000 (23:53 +1000)
committerJan Schmidt <thaytan@noraisin.net>
Fri, 30 Jul 2010 12:30:16 +0000 (22:30 +1000)
Fix problems with newer glib reporting bad encodings on the binary
data emerging from the joystick device fd.

tests/examples/seek/jsseek.c

index 7e407d01ebf2d2a731b6e96890ec0f6d588b68f5..83d54d650e0b72ba0a63ef4229a5026d9f5bc5bf 100644 (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);
   }