fixed invalid cast of an rvalue by adding a string constructor to class eServiceRefer...
[enigma2.git] / lib / dvb / metaparser.cpp
index 8c1f0cfdba88e373ccde1e5a7198dbcf90c3cb0b..abc4456e2c905d329b36d1639da229ac56a83467 100644 (file)
@@ -12,6 +12,8 @@ int eDVBMetaParser::parseFile(const std::string &tsname)
 
        int linecnt = 0;
        
 
        int linecnt = 0;
        
+       m_time_create = 0;
+       
        while (1)
        {
                char line[1024];
        while (1)
        {
                char line[1024];
@@ -26,7 +28,7 @@ int eDVBMetaParser::parseFile(const std::string &tsname)
                switch (linecnt)
                {
                case 0:
                switch (linecnt)
                {
                case 0:
-                       m_ref = (eServiceReferenceDVB&)eServiceReference(line);
+                       m_ref = eServiceReferenceDVB(line);
                        break;
                case 1:
                        m_name = line;
                        break;
                case 1:
                        m_name = line;
@@ -34,6 +36,9 @@ int eDVBMetaParser::parseFile(const std::string &tsname)
                case 2:
                        m_description = line;
                        break;
                case 2:
                        m_description = line;
                        break;
+               case 3:
+                       m_time_create = atoi(line);
+                       break;
                default:
                        break;
                }
                default:
                        break;
                }