]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
some cosmetic changes
authorc vw <dl1ycf@darc.de>
Wed, 29 Dec 2021 17:41:23 +0000 (18:41 +0100)
committerc vw <dl1ycf@darc.de>
Wed, 29 Dec 2021 17:41:23 +0000 (18:41 +0100)
discovery.c
midi2.c
midi_menu.c

index e24cb04619167255c2ec5c0e3321473838d74e46..e2edd70eb7d9be1e1ccfcd5906c201a9632728da 100644 (file)
@@ -71,7 +71,7 @@ GtkWidget *host_addr_entry;
 static char host_addr_buffer[128]="g0orx.ddns.net";
 char *host_addr = &host_addr_buffer[0];
 GtkWidget *host_port_spinner;
-gint host_port=45000;
+gint host_port=50000;  // default listening port
 #endif
 
 //
diff --git a/midi2.c b/midi2.c
index d052f7f1c09859dfaa2eb6ab30c82025bcb7cef7..f436e17898c034e48f147b6f448bb9227ae13bee 100644 (file)
--- a/midi2.c
+++ b/midi2.c
@@ -301,7 +301,7 @@ static int keyword2action(char *s) {
     return NO_ACTION;
 }
 
-int MIDIstartup(char *filename) {
+int ReadLegacyMidiFile(char *filename) {
     FILE *fpin;
     char zeile[255];
     char *cp,*cq;
index 9c08437730515332e9efbe43422339fd6391834b..3141e93a0f729b1993d756f1617202886a4912d5 100644 (file)
@@ -463,9 +463,9 @@ static void load_original_cb(GtkWidget *widget,gpointer user_data) {
   if(res==GTK_RESPONSE_ACCEPT) {
     char *loadfilename=gtk_file_chooser_get_filename(chooser);
     clear_cb(NULL,NULL);
-    MIDIstartup(loadfilename);
-    g_free(loadfilename);
+    ReadLegacyMidiFile(loadfilename);
     load_store();
+    g_free(loadfilename);
   }
   gtk_widget_destroy(load_dialog);
 }