Fixed inverted handling of fseek result value in srslte_filesource_seek

master
Robert Falkenberg 5 years ago committed by Andre Puschmann
parent dd613c1514
commit 3cf4431c66

@ -45,7 +45,7 @@ void srslte_filesource_free(srslte_filesource_t *q) {
} }
void srslte_filesource_seek(srslte_filesource_t *q, int pos) { void srslte_filesource_seek(srslte_filesource_t *q, int pos) {
if (!fseek(q->f, pos, SEEK_SET)){ if (fseek(q->f, pos, SEEK_SET) != 0){
perror("srslte_filesource_seek"); perror("srslte_filesource_seek");
} }
} }

Loading…
Cancel
Save