]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - alsa_write.c
afs: Simplify open_next_audio_file().
[paraslash.git] / alsa_write.c
index 32d8a50e98715ec92e2c43734c44c2bc33b39098..b0b21f2be4a6ac64c2d940f499b59757273db743 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005-2014 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005 Andre Noll <maan@tuebingen.mpg.de>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -125,7 +125,7 @@ static int alsa_init(struct private_alsa_write_data *pad,
        period_time = pad->buffer_time * 250; /* buffer time / 4 */
        msg = "could not set period time";
        ret = snd_pcm_hw_params_set_period_time_near(pad->handle, hwparams,
-               &period_time, 0);
+               &period_time, NULL);
        if (ret < 0)
                goto fail;