Skip to content

Commit

Permalink
[frontend] simultaneous recording bug
Browse files Browse the repository at this point in the history
Code test. Attempt to fix...

Zero length recordings when using Unicable devices and recordings with simultaneous start times. Possibly some sort of race condition exists.

Author: Athoik
  • Loading branch information
Huevos committed Sep 22, 2018
1 parent ad9bc2c commit afc238a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/dvb/frontend.cpp
Expand Up @@ -2325,6 +2325,7 @@ RESULT eDVBFrontend::prepare_sat(const eDVBFrontendParametersSatellite &feparm,
eWarning("[eDVBFrontend] no SEC module active!");
return -ENOENT;
}
eSingleLocker s(lock);
res = m_sec->prepare(*this, feparm, satfrequency, 1 << m_slotid, tunetimeout);
if (!res)
{
Expand Down
3 changes: 3 additions & 0 deletions lib/dvb/frontend.h
Expand Up @@ -6,6 +6,7 @@
#endif

#include <map>
#include <lib/base/elock.h>
#include <lib/dvb/idvb.h>
#include <lib/dvb/frontendparms.h>

Expand Down Expand Up @@ -127,6 +128,8 @@ class eDVBFrontend: public iDVBFrontend, public sigc::trackable

static int PriorityOrder;
static int PreferredFrontendIndex;

eSingleLock lock;
public:
eDVBFrontend(const char *devidenodename, int fe, int &ok, bool simulate=false, eDVBFrontend *simulate_fe=NULL);
virtual ~eDVBFrontend();
Expand Down

0 comments on commit afc238a

Please sign in to comment.