remove unnecessary debug and fix typo bug
[enigma2.git] / lib / service / servicemp3.h
index 2308fa87a835cfdb802e410eaa490b934fc0cf52..823fb7992855b3d0dcbfa3df9af76cf0ed2b4eb3 100644 (file)
@@ -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)
@@ -151,8 +153,9 @@ private:
        GstElement *m_gst_pipeline;
        GstTagList *m_stream_tags;
        eFixedMessagePump<int> m_pump;
+       std::string m_error_message;
 
-       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 */