dsdreamer wrote:
> It happens as the last second of the track ticks out. And if I change
> the return value to DECODE_COMPLETE, I don't get the error pop-up
> anymore.
>
> EDIT: The following patch is sufficient to cover up the error:
> >
Code:
--------------------
> > [fedora@wandquad squeezelite]$ git diff dsd.c
> diff --git a/dsd.c b/dsd.c
> index 691d9cc..b846796 100644
> --- a/dsd.c
> +++ b/dsd.c
> @@ -250,8 +250,8 @@ static decode_state _decode_dsf(void) {
> frames = min(bytes, d->sample_bytes) / bytes_per_frame;
> if (frames == 0) {
> // /2 for dop should never result in 0 as header len is always even
> - LOG_WARN("frames got to zero");
> - return DECODE_ERROR;
> + LOG_INFO("frames got to zero");
> + return DECODE_COMPLETE;
> }
>
--------------------
> >
>
> Is there any way I can check the number of samples in the file is as
> advertised by the header?
You should get the samples advertised with debugging turned on. Can you
change that info to:
Code:
--------------------
LOG_INFO("frames got to zero, bytes: %u sample_bytes: " FMT_u64, bytes,
d->sample_bytes);
--------------------
------------------------------------------------------------------------
Triode's Profile: http://forums.slimdevices.com/member.php?userid=17
View this thread: http://forums.slimdevices.com/showthread.php?t=99395
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix