fix semantics of Playlist::find_prev_region_start()
This commit is contained in:
parent
311db08cc3
commit
068cace22c
@ -2095,6 +2095,11 @@ Playlist::find_prev_region_start (samplepos_t sample)
|
|||||||
sampleoffset_t distance;
|
sampleoffset_t distance;
|
||||||
const samplepos_t first_sample = r->first_sample ();
|
const samplepos_t first_sample = r->first_sample ();
|
||||||
|
|
||||||
|
if (first_sample == sample) {
|
||||||
|
/* region at the given position - ignore */
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (first_sample < sample) {
|
if (first_sample < sample) {
|
||||||
distance = sample - first_sample;
|
distance = sample - first_sample;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user