diff options
author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-08-05 13:04:15 (GMT) |
---|---|---|
committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-08-05 13:04:15 (GMT) |
commit | f283e77337caad447dc77286f7f6e44e3c3a3174 (patch) | |
tree | d312595dd640034e468dc000d8f3e54d86df1bc2 /lib/dvb/decoder.cpp | |
parent | fb245070e55dcdcdf54d3db1961d8cc7264f5779 (diff) |
add support for "frame rate changed" and "progressive changed" video event
(the last needs new drivers)
Diffstat (limited to 'lib/dvb/decoder.cpp')
-rw-r--r-- | lib/dvb/decoder.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/dvb/decoder.cpp b/lib/dvb/decoder.cpp index 7ad1a25..71b3f39 100644 --- a/lib/dvb/decoder.cpp +++ b/lib/dvb/decoder.cpp @@ -563,6 +563,20 @@ void eDVBVideo::video_event(int) event.width = evt.u.size.w; /* emit */ m_event(event); } + else if (evt.type == VIDEO_EVENT_FRAME_RATE_CHANGED) + { + struct iTSMPEGDecoder::videoEvent event; + event.type = iTSMPEGDecoder::videoEvent::eventFrameRateChanged; + event.framerate = evt.u.frame_rate; + /* emit */ m_event(event); + } + else if (evt.type == 16 /*VIDEO_EVENT_PROGRESSIVE_CHANGED*/) + { + struct iTSMPEGDecoder::videoEvent event; + event.type = iTSMPEGDecoder::videoEvent::eventProgressiveChanged; + event.progressive = evt.u.frame_rate; + /* emit */ m_event(event); + } else eDebug("unhandled DVBAPI Video Event %d", evt.type); } |