mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
spark dmx: less debugging output; set buffer size
Origin commit data
------------------
Branch: master
Commit: 249d2964ac
Author: martii <you@example.com>
Date: 2012-07-13 (Fri, 13 Jul 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -4,6 +4,10 @@
|
|||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#ifdef MARTII
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
@@ -142,6 +146,10 @@ bool cDemux::Open(DMX_CHANNEL_TYPE pes_type, void * /*hVideoBuffer*/, int uBuffe
|
|||||||
int n = DMX_SOURCE_FRONT0;
|
int n = DMX_SOURCE_FRONT0;
|
||||||
if (ioctl(fd, DMX_SET_SOURCE, &n) < 0)
|
if (ioctl(fd, DMX_SET_SOURCE, &n) < 0)
|
||||||
lt_info("%s DMX_SET_SOURCE failed!\n", __func__);
|
lt_info("%s DMX_SET_SOURCE failed!\n", __func__);
|
||||||
|
#ifdef MARTII
|
||||||
|
if (uBufferSize == 0)
|
||||||
|
uBufferSize = 0xffff; // may or may not be reasonable --martii
|
||||||
|
#endif
|
||||||
if (uBufferSize > 0)
|
if (uBufferSize > 0)
|
||||||
{
|
{
|
||||||
/* probably uBufferSize == 0 means "use default size". TODO: find a reasonable default */
|
/* probably uBufferSize == 0 means "use default size". TODO: find a reasonable default */
|
||||||
@@ -195,6 +203,7 @@ bool cDemux::Start(bool)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef MARTII
|
||||||
for (std::vector<pes_pids>::const_iterator i = pesfds.begin(); i != pesfds.end(); ++i)
|
for (std::vector<pes_pids>::const_iterator i = pesfds.begin(); i != pesfds.end(); ++i)
|
||||||
{
|
{
|
||||||
lt_debug("%s starting demux fd %d pid 0x%04x\n", __FUNCTION__, (*i).fd, (*i).pid);
|
lt_debug("%s starting demux fd %d pid 0x%04x\n", __FUNCTION__, (*i).fd, (*i).pid);
|
||||||
@@ -202,6 +211,7 @@ bool cDemux::Start(bool)
|
|||||||
perror("DMX_START");
|
perror("DMX_START");
|
||||||
}
|
}
|
||||||
ioctl(fd, DMX_START);
|
ioctl(fd, DMX_START);
|
||||||
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user