Skip to content

Commit

Permalink
Fix unresolved symbol load errors on GNU Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
djp952 committed Jul 24, 2017
1 parent a6dd587 commit 81357ad
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
20 changes: 20 additions & 0 deletions src/dvrstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,26 @@ inline uint32_t read_be32(uint8_t const* ptr)
return val;
}

// dvrstream::MPEGTS_PACKET_LENGTH (static)
//
// Length of a single mpeg-ts data packet
size_t const dvrstream::MPEGTS_PACKET_LENGTH = 188;

// DEFAULT_READ_MIN (static)
//
// Default minimum amount of data to return from a read request
size_t const dvrstream::DEFAULT_READ_MINCOUNT = (1 KiB);

// DEFAULT_READ_TIMEOUT_MS (static)
//
// Default amount of time for a read operation to succeed
unsigned int const dvrstream::DEFAULT_READ_TIMEOUT_MS = 2500;

// DEFAULT_RINGBUFFER_SIZE (static)
//
// Default ring buffer size, in bytes
size_t const dvrstream::DEFAULT_RINGBUFFER_SIZE = (4 MiB);

//---------------------------------------------------------------------------
// dvrstream Constructor (private)
//
Expand Down
8 changes: 4 additions & 4 deletions src/dvrstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,22 @@ class dvrstream
// MPEGTS_PACKET_LENGTH
//
// Length of a single mpeg-ts data packet
static const size_t MPEGTS_PACKET_LENGTH = 188;
static size_t const MPEGTS_PACKET_LENGTH;

// DEFAULT_READ_MIN
//
// Default minimum amount of data to return from a read request
static const size_t DEFAULT_READ_MINCOUNT = (1 KiB);
static size_t const DEFAULT_READ_MINCOUNT;

// DEFAULT_READ_TIMEOUT_MS
//
// Default amount of time for a read operation to succeed
static const unsigned int DEFAULT_READ_TIMEOUT_MS = 2500;
static unsigned int const DEFAULT_READ_TIMEOUT_MS;

// DEFAULT_RINGBUFFER_SIZE
//
// Default ring buffer size, in bytes
static const size_t DEFAULT_RINGBUFFER_SIZE = (4 MiB);
static size_t const DEFAULT_RINGBUFFER_SIZE;

// Instance Constructor
//
Expand Down

0 comments on commit 81357ad

Please sign in to comment.