]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Moving the "init" down was not good.
authorDL1YCF <dl1ycf@darc.de>
Sun, 26 Jul 2020 10:32:39 +0000 (12:32 +0200)
committerDL1YCF <dl1ycf@darc.de>
Sun, 26 Jul 2020 10:32:39 +0000 (12:32 +0200)
radio.c

diff --git a/radio.c b/radio.c
index b5fc393f60cd920fe1b265fb7c5f1ba5e9dc6d16..2209b81c6edb2b197a65c0d14232198c63f5da79 100644 (file)
--- a/radio.c
+++ b/radio.c
@@ -604,7 +604,6 @@ if(!radio_is_remote) {
   }
 #endif
   
-/*
 #ifdef CLIENT_SERVER
   if(!radio_is_remote) {
 #endif
@@ -624,7 +623,6 @@ if(!radio_is_remote) {
 #ifdef CLIENT_SERVER
   }
 #endif
-*/
 
   if(display_zoompan) {
     zoompan = zoompan_init(display_width,ZOOMPAN_HEIGHT);
@@ -663,26 +661,6 @@ g_print("create_visual: calling radio_change_receivers: receivers=%d r=%d\n",rec
   //gtk_widget_show_all (fixed);
   gtk_widget_show_all (top_window);
 
-#ifdef CLIENT_SERVER
-  if(!radio_is_remote) {
-#endif
-  switch(protocol) {
-    case ORIGINAL_PROTOCOL:
-      old_protocol_init(0,display_width,receiver[0]->sample_rate);
-      break;
-    case NEW_PROTOCOL:
-      new_protocol_init(display_width);
-      break;
-#ifdef SOAPYSDR
-    case SOAPYSDR_PROTOCOL:
-      soapy_protocol_init(0,false);
-      break;
-#endif
-  }
-#ifdef CLIENT_SERVER
-  }
-#endif
-
 }
   
 void start_radio() {