make video stream type for running service accessible from python
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sun, 14 May 2006 16:13:55 +0000 (16:13 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sun, 14 May 2006 16:13:55 +0000 (16:13 +0000)
lib/service/iservice.h
lib/service/servicedvb.cpp

index 5ddf0cf..c93c84a 100644 (file)
@@ -274,6 +274,7 @@ public:
                sTracknumber,
                sGenre,
                sCAIDs,
                sTracknumber,
                sGenre,
                sCAIDs,
+               sVideoType  // MPEG2 MPEG4
        };
        enum { resNA = -1, resIsString = -2, resIsPyObject = -3 };
 
        };
        enum { resNA = -1, resIsString = -2, resIsPyObject = -3 };
 
index 742d60e..e9aeb8a 100644 (file)
@@ -1125,6 +1125,7 @@ int eDVBServicePlay::getInfo(int w)
                return -1;
        case sIsCrypted: return program.isCrypted;
        case sVideoPID: if (program.videoStreams.empty()) return -1; return program.videoStreams[0].pid;
                return -1;
        case sIsCrypted: return program.isCrypted;
        case sVideoPID: if (program.videoStreams.empty()) return -1; return program.videoStreams[0].pid;
+       case sVideoType: if (program.videoStreams.empty()) return -1; return program.videoStreams[0].type;
        case sAudioPID: if (program.audioStreams.empty()) return -1; return program.audioStreams[m_current_audio_stream].pid;
        case sPCRPID: return program.pcrPid;
        case sPMTPID: return program.pmtPid;
        case sAudioPID: if (program.audioStreams.empty()) return -1; return program.audioStreams[m_current_audio_stream].pid;
        case sPCRPID: return program.pcrPid;
        case sPMTPID: return program.pmtPid;