aboutsummaryrefslogtreecommitdiff
path: root/lib/service/servicemp3.h
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-10-06 22:25:45 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-10-06 22:25:45 +0000
commit230e936d158bc6375043a455857e36857a78dcea (patch)
treebbb39bac021283ba8e66947055f28941b6085cdc /lib/service/servicemp3.h
parentd88e147f82e17231d52e286d0ee6b3210cd8799e (diff)
downloadenigma2-230e936d158bc6375043a455857e36857a78dcea.tar.gz
enigma2-230e936d158bc6375043a455857e36857a78dcea.zip
fix compiler warnings
Diffstat (limited to 'lib/service/servicemp3.h')
-rw-r--r--lib/service/servicemp3.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/service/servicemp3.h b/lib/service/servicemp3.h
index 2308fa87..fc3c85ff 100644
--- a/lib/service/servicemp3.h
+++ b/lib/service/servicemp3.h
@@ -43,6 +43,8 @@ public:
typedef struct _GstElement GstElement;
+typedef enum { atUnknown, atMPEG, atMP3, atAC3, atDTS, atAAC, atPCM, atOGG } audiotype_t;
+
class eServiceMP3: public iPlayableService, public iPauseableService,
public iServiceInformation, public iSeekableService, public iAudioTrackSelection, public iAudioChannelSelection, public iSubtitleOutput, public Object
{
@@ -113,7 +115,7 @@ public:
struct audioStream
{
GstPad* pad;
- enum { atUnknown, atMPEG, atMP3, atAC3, atDTS, atAAC, atPCM, atOGG } type;
+ audiotype_t type;
std::string language_code; /* iso-639, if available. */
audioStream()
:pad(0), type(atUnknown)
@@ -152,7 +154,7 @@ private:
GstTagList *m_stream_tags;
eFixedMessagePump<int> m_pump;
- int gstCheckAudioPad(GstStructure* structure);
+ audiotype_t gstCheckAudioPad(GstStructure* structure);
void gstBusCall(GstBus *bus, GstMessage *msg);
static GstBusSyncReply gstBusSyncHandler(GstBus *bus, GstMessage *message, gpointer user_data);
static void gstCBpadAdded(GstElement *decodebin, GstPad *pad, gpointer data); /* for mpegdemux */