"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "axfer/subcmd-transfer.c" between
alsa-utils-1.2.1.tar.bz2 and alsa-utils-1.2.2.tar.bz2

About: ALSA (Advanced Linux Sound Architecture) - Utilities.

subcmd-transfer.c  (alsa-utils-1.2.1.tar.bz2):subcmd-transfer.c  (alsa-utils-1.2.2.tar.bz2)
skipping to change at line 14 skipping to change at line 14
// //
// Copyright (c) 2018 Takashi Sakamoto <o-takashi@sakamocchi.jp> // Copyright (c) 2018 Takashi Sakamoto <o-takashi@sakamocchi.jp>
// //
// Licensed under the terms of the GNU General Public License, version 2. // Licensed under the terms of the GNU General Public License, version 2.
#include "xfer.h" #include "xfer.h"
#include "subcmd.h" #include "subcmd.h"
#include "misc.h" #include "misc.h"
#include <signal.h> #include <signal.h>
#include <inttypes.h>
struct context { struct context {
struct xfer_context xfer; struct xfer_context xfer;
struct mapper_context mapper; struct mapper_context mapper;
struct container_context *cntrs; struct container_context *cntrs;
unsigned int cntr_count; unsigned int cntr_count;
// NOTE: To handling Unix signal. // NOTE: To handling Unix signal.
bool interrupted; bool interrupted;
int signal; int signal;
skipping to change at line 392 skipping to change at line 393
if (i < ctx->cntr_count) if (i < ctx->cntr_count)
break; break;
*actual_frame_count += frame_count; *actual_frame_count += frame_count;
if (*actual_frame_count >= expected_frame_count) if (*actual_frame_count >= expected_frame_count)
break; break;
} }
if (!ctx->xfer.quiet) { if (!ctx->xfer.quiet) {
fprintf(stderr, fprintf(stderr,
"%s: Expected %lu frames, Actual %lu frames\n", "%s: Expected %" PRIu64 "frames, "
"Actual %" PRIu64 "frames\n",
snd_pcm_stream_name(direction), expected_frame_count, snd_pcm_stream_name(direction), expected_frame_count,
*actual_frame_count); *actual_frame_count);
if (ctx->interrupted) { if (ctx->interrupted) {
fprintf(stderr, "Aborted by signal: %s\n", fprintf(stderr, "Aborted by signal: %s\n",
strsignal(ctx->signal)); strsignal(ctx->signal));
return 0; return 0;
} }
} }
return err; return err;
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)