]> granicus.if.org Git - handbrake/commitdiff
gtk: Fix minor cross compile issue in callbacks
authormwayne <mcwaynus@gmail.com>
Thu, 3 Jan 2019 10:15:58 +0000 (11:15 +0100)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 3 Jan 2019 15:29:39 +0000 (08:29 -0700)
Fix undeclared variable introduced in commit 826d1a7fb862c292195d766f72c51dce120b47bd

gtk/src/callbacks.c

index 97d08039b6324969407b7b04e2a8ec7921ffffab..1ca6b66db9264e5e723926f541b35ba6b3f56326 100644 (file)
@@ -4457,12 +4457,12 @@ ghb_log_cb(GIOChannel *source, GIOCondition cond, gpointer data)
                 scroll_tok = g_idle_add((GSourceFunc)activity_scroll_to_bottom,
                                         ud);
             }
-            if (ud->activity_log != NULL)
-            {
 #if defined(_WIN32)
-                gsize one = 1;
-                utf8_text[length-1] = '\r';
+            gsize one = 1;
+            utf8_text[length-1] = '\r';
 #endif
+            if (ud->activity_log != NULL)
+            {
                 g_io_channel_write_chars (ud->activity_log, utf8_text,
                                         length, &outlength, NULL);
 #if defined(_WIN32)