3 Oct
2016
3 Oct
'16
4:39 p.m.
@@ -2438,6 +2440,9 @@ static snd_pcm_sframes_t snd_pcm_playback_rewind(struct snd_pcm_substream *subst if (frames == 0) return 0;
- if (runtime->no_rewinds)
return 0;
Better to return an error instead?
As the number of frames rewinded is zero, it looks appropriate. Any reason why returning an error code would help?
The return type is also snd_sframes_t, not sure how a error code would be returned without additional changes.