1#ifndef MYTHMEDIABUFFER_H
2#define MYTHMEDIABUFFER_H
5#include <QReadWriteLock>
6#include <QWaitCondition>
12#include "libmythbase/mythconfig.h"
19#include "libavcodec/avcodec.h"
35 if (SEEK_SET == Whence)
37 if (SEEK_CUR == Whence)
65 bool UseReadAhead =
true,
67 bool StreamOnly =
false);
97 bool IsDVD (
void)
const;
98 bool IsBD (
void)
const;
106 void Reset (
bool Full =
false,
bool ToAdjust =
false,
bool ResetInternal =
false);
113 long long Seek (
long long Position,
int Whence,
bool HasLock =
false);
129 long long WriterSeek (
long long Position,
int Whence,
bool HasLock =
false);
140 virtual bool IsInMenu (
void)
const {
return false; }
145 virtual bool ReOpen (
const QString& =
"") {
return false; }
150 void run(
void)
override;
157 int WaitForAvail (
int Count, std::chrono::milliseconds Timeout);
Keeps track of recordings in a current LiveTV instance.
This is a wrapper around QThread that does several additional things.
virtual void run(void)
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
A class to allow a MythMediaBuffer to read from BDs.
This class supports the writing of recordings to disk.
std::chrono::duration< CHRONO_TYPE, std::ratio< 1, 90000 > > pts