htsp: fix mistakes in fileSeek handler
This commit is contained in:
parent
7943c8b684
commit
249b4c1d0f
1 changed files with 2 additions and 2 deletions
|
@ -1449,10 +1449,10 @@ htsp_method_file_seek(htsp_connection_t *htsp, htsmsg_t *in)
|
|||
else
|
||||
return htsp_error("Field 'whence' contained invalid value");
|
||||
} else {
|
||||
whence = SEEK_CUR;
|
||||
whence = SEEK_SET;
|
||||
}
|
||||
|
||||
if(lseek(hf->hf_fd, off, whence) != off)
|
||||
if ((off = lseek(hf->hf_fd, off, whence)) < 0)
|
||||
return htsp_error("Seek error");
|
||||
|
||||
rep = htsmsg_create_map();
|
||||
|
|
Loading…
Add table
Reference in a new issue