daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ===================================================================
  2. --- linux/freebob/JackFreebobDriver.cpp (revision 730)
  3. +++ linux/freebob/JackFreebobDriver.cpp (working copy)
  4. @@ -1054,7 +1054,7 @@
  5.  
  6.          freebob_jack_settings_t cmlparams;
  7.  
  8. -        char *device_name = "hw:0";
  9. +        const char *device_name = "hw:0";
  10.  
  11.          cmlparams.period_size_set = 0;
  12.          cmlparams.sample_rate_set = 0;
  13. @@ -1078,7 +1078,7 @@
  14.  
  15.              switch (param->character) {
  16.                  case 'd':
  17. -                    device_name = strdup (param->value.str);
  18. +                    device_name = param->value.str;
  19.                      break;
  20.                  case 'p':
  21.                      cmlparams.period_size = param->value.ui;
  22. @@ -1127,7 +1127,6 @@
  23.              nbitems = sscanf(device_name, "hw:%u", &port);
  24.  
  25.              if (nbitems < 1) {
  26. -                free(device_name);
  27.                  printError("device (-d) argument not valid\n");
  28.                  return NULL;
  29.              } else {
  30. magellan:/Documents/jackmp-svn/trunk/jackmp letz$
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top