dvb record: fix returncodes
authorFelix Domke <tmbinc@elitedvb.net>
Tue, 20 Dec 2005 02:17:37 +0000 (02:17 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Tue, 20 Dec 2005 02:17:37 +0000 (02:17 +0000)
lib/service/servicedvbrecord.cpp

index 33f0497..454c2be 100644 (file)
@@ -65,10 +65,7 @@ RESULT eDVBServiceRecord::prepare(const char *filename)
 {
        m_filename = filename;
        if (m_state == stateIdle)
 {
        m_filename = filename;
        if (m_state == stateIdle)
-       {
-               doPrepare();
-               return 0;
-       }
+               return doPrepare();
        else
                return -1;
 }
        else
                return -1;
 }
@@ -106,7 +103,7 @@ int eDVBServiceRecord::doPrepare()
        {
                m_pids_active.clear();
                m_state = statePrepared;
        {
                m_pids_active.clear();
                m_state = statePrepared;
-               m_service_handler.tune(m_ref);
+               return m_service_handler.tune(m_ref);
        }
        return 0;
 }
        }
        return 0;
 }