mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-30 08:51:11 +02:00
libeplayer3: Standardize comparison order and improve code readability
Origin commit data
------------------
Commit: b7d7f97ee4
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2024-03-21 (Thu, 21 Mar 2024)
Origin message was:
------------------
small fix
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -111,7 +111,7 @@ ssize_t WriteWithRetry(Context_t *context, int pipefd, int fd, void *pDVBMtx __a
|
||||
int retval = -1;
|
||||
int maxFd = pipefd > fd ? pipefd : fd;
|
||||
struct timeval tv;
|
||||
while (size > 0 && 0 == PlaybackDieNow(0) && !context->playback->isSeeking)
|
||||
while (size > 0 && PlaybackDieNow(0) == 0 && !context->playback->isSeeking)
|
||||
{
|
||||
FD_ZERO(&rfds);
|
||||
FD_ZERO(&wfds);
|
||||
@@ -194,7 +194,7 @@ ssize_t write_with_retry(int fd, const void *buf, int size)
|
||||
{
|
||||
ssize_t ret;
|
||||
int retval = 0;
|
||||
while (size > 0 && 0 == PlaybackDieNow(0))
|
||||
while (size > 0 && PlaybackDieNow(0) == 0)
|
||||
{
|
||||
ret = write(fd, buf, size);
|
||||
if (ret < 0)
|
||||
|
Reference in New Issue
Block a user