mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 15:32:43 +02:00
libtriple: fix neutrino streamdev
Origin commit data
------------------
Branch: master
Commit: 5cb4a9d274
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-01-23 (Wed, 23 Jan 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -91,13 +91,14 @@ cDemux::~cDemux()
|
||||
|
||||
bool cDemux::Open(DMX_CHANNEL_TYPE pes_type, void * /*hVideoBuffer*/, int uBufferSize)
|
||||
{
|
||||
int devnum = num;
|
||||
devnum = num;
|
||||
int flags = O_RDWR;
|
||||
if (fd > -1)
|
||||
lt_info("%s FD ALREADY OPENED? fd = %d\n", __FUNCTION__, fd);
|
||||
if (pes_type == DMX_TP_CHANNEL)
|
||||
{
|
||||
if (num == 0) /* streaminfo measurement, let's cheat... */
|
||||
/* see neutrino's src/gui/streaminfo2.cpp for the buffer size */
|
||||
if (num == 0 && uBufferSize == 3 * 3008 * 62) /* streaminfo measurement, let's cheat... */
|
||||
{
|
||||
lt_info("%s num=0 and DMX_TP_CHANNEL => measurement demux\n", __func__);
|
||||
devnum = 2; /* demux 0 is used for live, demux 1 for recording */
|
||||
@@ -535,7 +536,7 @@ bool cDemux::addPid(unsigned short Pid)
|
||||
}
|
||||
if (fd == -1)
|
||||
lt_info("%s bucketfd not yet opened? pid=%hx\n", __FUNCTION__, Pid);
|
||||
pfd.fd = open(devname[num], O_RDWR);
|
||||
pfd.fd = open(devname[devnum], O_RDWR);
|
||||
if (pfd.fd < 0)
|
||||
{
|
||||
lt_info("%s #%d Pid = %hx open failed (%m)\n", __FUNCTION__, num, Pid);
|
||||
|
Reference in New Issue
Block a user