void disableVideoOutput(bool disable) { settings.videoOutputDisabled = disable; printf("[controld] videoOutput %s\n", disable?"off":"on"); #ifdef HAVE_DBOX_HARDWARE int arg=disable?1:0; int fd; if ((fd = open(SAA7126_DEVICE,O_RDWR|O_NONBLOCK)) < 0) perror("[controld] " SAA7126_DEVICE); else { if ((ioctl(fd,SAAIOSPOWERSAVE,&arg) < 0)) perror("[controld] SAAIOSPOWERSAVE"); close(fd); } #endif /* arg=disable?0:0xf; if((fd = open("/dev/dbox/fp0",O_RDWR|O_NONBLOCK)) < 0) { perror("[controld] FP DEVICE: "); return; } if ( (ioctl(fd,FP_IOCTL_LCD_DIMM,&arg) < 0)) { perror("[controld] IOCTL: "); close(fd); return; } close(fd); */ if (!disable) { //zapit.setStandby(false); if (!settings.mute) audioDecoder->unmute(); #if defined HAVE_DREAMBOX_HARDWARE || defined HAVE_IPBOX_HARDWARE startPlayBack(cc); #endif setvideooutput(settings.videooutput, false); videoDecoder->setVideoFormat(settings.videoformat); } else { #ifdef HAVE_TRIPLEDRAGON if (videoDecoder) videoDecoder->setVideoOutput(VID_OUTFMT_DISABLE_DACS); #else setvideooutput(CControld::FORMAT_CVBS, false); #endif videoDecoder->setVideoFormat(-1); //zapit.setStandby(true); audioDecoder->mute(); #if defined HAVE_DREAMBOX_HARDWARE || defined HAVE_IPBOX_HARDWARE stopPlayBack(); #endif } }
void CWebTV::zapTo(int pos, bool rezap) { // show emty channellist error msg if (channels.empty()) { MessageBox(LOCALE_MESSAGEBOX_ERROR, g_Locale->getText(LOCALE_WEBTV_CHANNELLIST_NONEFOUND), CMessageBox::mbrCancel, CMessageBox::mbCancel, NEUTRINO_ICON_ERROR); return; } // if not mached if ( (pos >= (signed int) channels.size()) || (pos < 0) ) { pos = 0; } // check if the same channel if ( pos != tuned || rezap) { tuned = pos; // if(playback->playing) playback->Stop(); // parentallock if ( (channels[pos]->locked) && ( (g_settings.parentallock_prompt == PARENTALLOCK_PROMPT_ONSIGNAL) || (g_settings.parentallock_prompt == PARENTALLOCK_PROMPT_CHANGETOLOCKED)) ) { if ( zapProtection != NULL ) zapProtection->fsk = g_settings.parentallock_lockage; else { zapProtection = new CZapProtection( g_settings.parentallock_pincode, g_settings.parentallock_lockage); if ( !zapProtection->check() ) { delete zapProtection; zapProtection = NULL; // do not thing } else { delete zapProtection; zapProtection = NULL; // start playback startPlayBack(pos); } } } else startPlayBack(pos); } // vfd if (CVFD::getInstance()->is4digits) CVFD::getInstance()->LCDshowText(pos + 1); else CVFD::getInstance()->showServicename(channels[pos]->title); // UTF-8 //infoviewer g_InfoViewer->showMovieInfo(channels[pos]->title, channels[pos]->description, file_prozent, duration, ac3state, speed, playstate, false, false); }