module-equalizer-sink: disable active profile name restoration as something in pack...
authorJason Newton <nevion@gmail.com>
Sat, 19 Sep 2009 18:15:05 +0000 (11:15 -0700)
committerJason Newton <nevion@gmail.com>
Fri, 2 Oct 2009 09:14:56 +0000 (02:14 -0700)
proper fix

src/modules/module-equalizer-sink.c

index 74d7497..3a28b49 100755 (executable)
@@ -978,13 +978,13 @@ static void load_state(struct userdata *u){
                 memcpy(u->Hs[c][a_i], H, FILTER_SIZE * sizeof(float));
                 pa_aupdate_write_end(u->a_H[c]);
             }
-            unpack(((char *)value.data) + FILTER_STATE_SIZE, value.size - FILTER_STATE_SIZE, &names, &n_profs);
-            n_profs = PA_MIN(n_profs, u->channels);
-            for(size_t c = 0; c < n_profs; ++c){
-                pa_xfree(u->base_profiles[c]);
-                u->base_profiles[c] = names[c];
-            }
-            pa_xfree(names);
+            //unpack(((char *)value.data) + FILTER_STATE_SIZE, value.size - FILTER_STATE_SIZE, &names, &n_profs);
+            //n_profs = PA_MIN(n_profs, u->channels);
+            //for(size_t c = 0; c < n_profs; ++c){
+            //    pa_xfree(u->base_profiles[c]);
+            //    u->base_profiles[c] = names[c];
+            //}
+            //pa_xfree(names);
         }
         pa_datum_free(&value);
     }else{