Ticket #4963: external-changer.diff
File external-changer.diff, 3.4 KB (added by , 16 years ago) |
---|
-
mythtv-0.21/libs/libmythtv/channelbase.cpp
old new 600 600 return GetChannels(inputid); 601 601 } 602 602 603 bool ChannelBase::ChangeExternalChannel(const QString & channum)603 bool ChannelBase::ChangeExternalChannel(const QString &freqid, const QString &channum) 604 604 { 605 605 #ifdef USING_MINGW 606 606 VERBOSE(VB_IMPORTANT, LOC_WARN + … … 613 613 if (changer.isEmpty()) 614 614 return false; 615 615 616 QString command = QString("%1 %2 ").arg(changer).arg(channum);616 QString command = QString("%1 %2 %3").arg(changer).arg(freqid).arg(channum); 617 617 618 618 VERBOSE(VB_CHANNEL, QString("External channel change: %1").arg(command)); 619 619 pid_t child = fork(); 620 -- mythtv-0.21/libs/libmythtv/channel.cpp~ 2008-03-15 14:42:42.000000000 +0000620 ++ mythtv-0.21/libs/libmythtv/channel.cpp 2008-03-15 14:51:00.000000000 +0000 … … 532 532 return false; 533 533 } 534 534 } 535 else if (!ChangeExternalChannel(freqid)) 535 else if (ChangeExternalChannel(freqid,channum)) 536 { 537 if ((*it)->name.contains("television", false)) 538 { 539 if (isFrequency) 540 { 541 if (!Tune(frequency, "", (is_dtv) ? "8vsb" : "analog", dtv_si_std)) 542 { 543 return false; 544 } 545 } 546 else 547 { 548 if (!TuneTo(freqid, finetune)) 549 return false; 550 } 551 } 552 } 553 else 536 554 return false; 537 555 538 556 // Set the current channum to the new channel's channum 539 -- mythtv-0.21/libs/libmythtv/firewirechannel.cpp~ 2008-01-16 17:55:48.000000000 +0000557 ++ mythtv-0.21/libs/libmythtv/firewirechannel.cpp 2008-03-15 13:55:28.000000000 +0000 … … 95 95 bool ok = false; 96 96 if (!(*it)->externalChanger.isEmpty()) 97 97 { 98 ok = ChangeExternalChannel(freqid );98 ok = ChangeExternalChannel(freqid,channum); 99 99 SetSIStandard("mpeg"); 100 100 SetDTVInfo(0,0,0,0,1); 101 101 } -
mythtv-0.21/libs/libmythtv/channelbase.h
old new 115 115 int inputNum, uint &mplexid_restriction) const; 116 116 117 117 virtual int GetCardID(void) const; 118 virtual bool ChangeExternalChannel(const QString & newchan);118 virtual bool ChangeExternalChannel(const QString &freqid, const QString &channum); 119 119 static void StoreInputChannels(const InputMap&); 120 120 static void StoreDefaultInput(uint cardid, const QString &input); 121 121 -
mythtv-0.21/libs/libmythtv/iptvchannel.cpp
old new 107 107 return false; 108 108 } 109 109 110 if (!(*it)->externalChanger.isEmpty() && !ChangeExternalChannel(channum ))110 if (!(*it)->externalChanger.isEmpty() && !ChangeExternalChannel(channum,"0")) 111 111 return false; 112 112 113 113 // Set the current channum to the new channel's channum -
mythtv-0.21/libs/libmythtv/hdhrchannel.cpp
old new 331 331 return false; 332 332 } 333 333 } 334 else if (!ChangeExternalChannel(freqid ))334 else if (!ChangeExternalChannel(freqid,channum)) 335 335 return false; 336 336 337 337 // Set the current channum to the new channel's channum