fixed invalid cast of an rvalue by adding a string constructor to class eServiceRefer...
[enigma2.git] / lib / dvb / metaparser.cpp
index 5c098150e62a1a672accc6325f7416b017297ad9..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 = (const eServiceReferenceDVB&)eServiceReference(line);
+                       m_ref = eServiceReferenceDVB(line);
                        break;
                case 1:
                        m_name = line;
                        break;
                case 1:
                        m_name = line;