mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 23:43:00 +02:00
Improve STOP command in the buffering mode
Signed-off-by: max_10 <max_10@gmx.de>
This commit is contained in:
@@ -198,6 +198,8 @@ int LinuxDvbClose(Context_t *context, char *type)
|
||||
*/
|
||||
LinuxDvbStop(context, type);
|
||||
getLinuxDVBMutex(FILENAME, __FUNCTION__, __LINE__);
|
||||
if (isBufferedOutput)
|
||||
LinuxDvbBuffClose(context);
|
||||
if (video && videofd != -1)
|
||||
{
|
||||
close(videofd);
|
||||
@@ -208,8 +210,6 @@ int LinuxDvbClose(Context_t *context, char *type)
|
||||
close(audiofd);
|
||||
audiofd = -1;
|
||||
}
|
||||
if (isBufferedOutput)
|
||||
LinuxDvbBuffClose(context);
|
||||
releaseLinuxDVBMutex(FILENAME, __FUNCTION__, __LINE__);
|
||||
return cERR_LINUXDVB_NO_ERROR;
|
||||
}
|
||||
|
Reference in New Issue
Block a user