mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-28 07:50:58 +02:00
Improve STOP command in the buffering mode
Signed-off-by: max_10 <max_10@gmx.de>
Origin commit data
------------------
Branch: master
Commit: 68c06aaafa
Author: samsamsam <samsamsam@o2.pl>
Date: 2018-04-05 (Thu, 05 Apr 2018)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -294,6 +294,8 @@ int32_t LinuxDvbBuffClose(Context_t *context __attribute__((unused)))
|
||||
WriteWakeUp();
|
||||
|
||||
pthread_mutex_lock(&bufferingMtx);
|
||||
/* wake up if thread is waiting for data */
|
||||
pthread_cond_signal(&bufferingdDataAddedCond);
|
||||
/* wait for thread end */
|
||||
clock_gettime(CLOCK_REALTIME, &max_wait);
|
||||
max_wait.tv_sec += 1;
|
||||
|
Reference in New Issue
Block a user