aboutsummaryrefslogtreecommitdiff
path: root/lib/service/servicedvb.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-08-05 13:04:15 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-08-05 13:04:15 +0000
commitf283e77337caad447dc77286f7f6e44e3c3a3174 (patch)
treed312595dd640034e468dc000d8f3e54d86df1bc2 /lib/service/servicedvb.cpp
parentfb245070e55dcdcdf54d3db1961d8cc7264f5779 (diff)
downloadenigma2-f283e77337caad447dc77286f7f6e44e3c3a3174.tar.gz
enigma2-f283e77337caad447dc77286f7f6e44e3c3a3174.zip
add support for "frame rate changed" and "progressive changed" video event
(the last needs new drivers)
Diffstat (limited to 'lib/service/servicedvb.cpp')
-rw-r--r--lib/service/servicedvb.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp
index 307c317f..e036307b 100644
--- a/lib/service/servicedvb.cpp
+++ b/lib/service/servicedvb.cpp
@@ -2954,7 +2954,17 @@ void eDVBServicePlay::setPCMDelay(int delay)
void eDVBServicePlay::video_event(struct iTSMPEGDecoder::videoEvent event)
{
memcpy(&m_videoEventData, &event, sizeof(iTSMPEGDecoder::videoEvent));
- m_event((iPlayableService*)this, evVideoSizeChanged);
+ switch(event.type) {
+ case iTSMPEGDecoder::videoEvent::eventSizeChanged:
+ m_event((iPlayableService*)this, evVideoSizeChanged);
+ break;
+ case iTSMPEGDecoder::videoEvent::eventFrameRateChanged:
+ m_event((iPlayableService*)this, evVideoFramerateChanged);
+ break;
+ case iTSMPEGDecoder::videoEvent::eventProgressiveChanged:
+ m_event((iPlayableService*)this, evVideoProgressiveChanged);
+ break;
+ }
}
RESULT eDVBServicePlay::stream(ePtr<iStreamableService> &ptr)