Improve STOP command in the buffering mode

Signed-off-by: max_10 <max_10@gmx.de>


Origin commit data
------------------
Branch: master
Commit: b29e15ea23
Author: samsamsam <samsamsam@o2.pl>
Date: 2018-04-05 (Thu, 05 Apr 2018)



------------------
This commit was generated by Migit
This commit is contained in:
samsamsam
2018-04-05 21:50:52 +02:00
committed by max_10
parent db9ed727b0
commit 88c2f414e6
3 changed files with 5 additions and 3 deletions

View File

@@ -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;
}