eWarning("%s: %m", filename);
else
{
- m_sn = new eSocketNotifier(eApp, m_fd, eSocketNotifier::Priority);
+ m_sn = eSocketNotifier::create(eApp, m_fd, eSocketNotifier::Priority);
CONNECT(m_sn->activated, eDVBVideo::video_event);
}
eDebug("Video Device: %s", filename);
eDVBVideo::~eDVBVideo()
{
- if (m_sn)
- delete m_sn;
if (m_is_slow_motion)
setSlowMotion(0);
if (m_is_fast_forward)
++pos;
if ((iframe[3] >> 4) != 0xE) // no pes header
write(m_video_clip_fd, pes_header, sizeof(pes_header));
+ else
+ iframe[4] = iframe[5] = 0x00;
write(m_video_clip_fd, iframe, s.st_size);
if (!seq_end_avail)
write(m_video_clip_fd, seq_end, sizeof(seq_end));