openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
servicemp3.cpp File Reference
#include <lib/base/ebase.h>
#include <lib/base/eerror.h>
#include <lib/base/init_num.h>
#include <lib/base/init.h>
#include <lib/base/nconfig.h>
#include <lib/base/object.h>
#include <lib/dvb/epgcache.h>
#include <lib/dvb/decoder.h>
#include <lib/components/file_eraser.h>
#include <lib/gui/esubtitle.h>
#include <lib/service/servicemp3.h>
#include <lib/service/servicemp3record.h>
#include <lib/service/service.h>
#include <lib/gdi/gpixmap.h>
#include <string>
#include <gst/gst.h>
#include <gst/pbutils/missing-plugins.h>
#include <sys/stat.h>
#include <sys/time.h>

Classes

class  eMP3ServiceOfflineOperations
 

Macros

#define HTTP_TIMEOUT   10
 
#define GSTREAMER_SUBTITLE_SYNC_MODE_BUG
 

Enumerations

enum  eServiceMP3Flags { BUFFERING_ENABLED = 0x00000001 , PROGRESSIVE_DOWNLOAD = 0x00000002 }
 
enum  GstPlayFlags {
  GST_PLAY_FLAG_VIDEO = (1 << 0) , GST_PLAY_FLAG_AUDIO = (1 << 1) , GST_PLAY_FLAG_TEXT = (1 << 2) , GST_PLAY_FLAG_VIS = (1 << 3) ,
  GST_PLAY_FLAG_SOFT_VOLUME = (1 << 4) , GST_PLAY_FLAG_NATIVE_AUDIO = (1 << 5) , GST_PLAY_FLAG_NATIVE_VIDEO = (1 << 6) , GST_PLAY_FLAG_DOWNLOAD = (1 << 7) ,
  GST_PLAY_FLAG_BUFFERING = (1 << 8) , GST_PLAY_FLAG_DEINTERLACE = (1 << 9) , GST_PLAY_FLAG_SOFT_COLORBALANCE = (1 << 10) , GST_PLAY_FLAG_FORCE_FILTERS = (1 << 11)
}
 

Functions

static void gst_sleepms (uint32_t msec)
 
static void create_gstreamer_sinks ()
 
 DEFINE_REF (eMP3ServiceOfflineOperations)
 
 DEFINE_REF (eServiceMP3InfoContainer)
 
 DEFINE_REF (eServiceMP3)
 
 DEFINE_REF (GstMessageContainer)
 
subtype_t getSubtitleType (GstPad *pad, gchar *g_codec=NULL)
 

Variables

static bool first_play_eServicemp3 = false
 
static GstElementdvb_audiosink
 
static GstElementdvb_videosink
 
static GstElementdvb_subsink
 
static bool dvb_audiosink_ok
 
static bool dvb_videosink_ok
 
static bool dvb_subsink_ok
 
eAutoInitPtr< eServiceFactoryMP3init_eServiceFactoryMP3 (eAutoInitNumbers::service+1, "eServiceFactoryMP3")
 

Macro Definition Documentation

◆ GSTREAMER_SUBTITLE_SYNC_MODE_BUG

#define GSTREAMER_SUBTITLE_SYNC_MODE_BUG

◆ HTTP_TIMEOUT

#define HTTP_TIMEOUT   10

Enumeration Type Documentation

◆ eServiceMP3Flags

Enumerator
BUFFERING_ENABLED 
PROGRESSIVE_DOWNLOAD 

◆ GstPlayFlags

Enumerator
GST_PLAY_FLAG_VIDEO 
GST_PLAY_FLAG_AUDIO 
GST_PLAY_FLAG_TEXT 
GST_PLAY_FLAG_VIS 
GST_PLAY_FLAG_SOFT_VOLUME 
GST_PLAY_FLAG_NATIVE_AUDIO 
GST_PLAY_FLAG_NATIVE_VIDEO 
GST_PLAY_FLAG_DOWNLOAD 
GST_PLAY_FLAG_BUFFERING 
GST_PLAY_FLAG_DEINTERLACE 
GST_PLAY_FLAG_SOFT_COLORBALANCE 
GST_PLAY_FLAG_FORCE_FILTERS 

Function Documentation

◆ create_gstreamer_sinks()

static void create_gstreamer_sinks ( )
static

◆ DEFINE_REF() [1/4]

DEFINE_REF ( eMP3ServiceOfflineOperations  )

◆ DEFINE_REF() [2/4]

DEFINE_REF ( eServiceMP3  )

◆ DEFINE_REF() [3/4]

DEFINE_REF ( eServiceMP3InfoContainer  )

◆ DEFINE_REF() [4/4]

DEFINE_REF ( GstMessageContainer  )

◆ getSubtitleType()

subtype_t getSubtitleType ( GstPad *  pad,
gchar *  g_codec = NULL 
)

◆ gst_sleepms()

static void gst_sleepms ( uint32_t  msec)
static

Variable Documentation

◆ dvb_audiosink

GstElement* dvb_audiosink
static

◆ dvb_audiosink_ok

bool dvb_audiosink_ok
static

◆ dvb_subsink

GstElement * dvb_subsink
static

◆ dvb_subsink_ok

bool dvb_subsink_ok
static

◆ dvb_videosink

GstElement * dvb_videosink
static

◆ dvb_videosink_ok

bool dvb_videosink_ok
static

◆ first_play_eServicemp3

bool first_play_eServicemp3 = false
static

◆ init_eServiceFactoryMP3

eAutoInitPtr<eServiceFactoryMP3> init_eServiceFactoryMP3(eAutoInitNumbers::service+1, "eServiceFactoryMP3") ( eAutoInitNumbers::service 1,
"eServiceFactoryMP3"   
)