Changeset 65bcb3938 in mythtv
- Timestamp:
- Dec 31, 2009, 9:57:50 PM (15 years ago)
- Branches:
- devel/2020-player, devel/ffmpeg-resync, devel/gpu-commflag, fixes/0.23, fixes/0.24, fixes/0.25, fixes/0.26, fixes/0.27, fixes/0.28, fixes/29, fixes/30, fixes/31, github-templates, master
- Children:
- 94c11af802
- Parents:
- ae87d9d58
- Location:
- mythtv/libs/libmythtv
- Files:
-
- 2 added
- 6 edited
-
cardutil.cpp (modified) (2 diffs)
-
cardutil.h (modified) (5 diffs)
-
dbcheck.cpp (modified) (3 diffs)
-
importrecorder.cpp (added)
-
importrecorder.h (added)
-
libmythtv.pro (modified) (1 diff)
-
tv_rec.cpp (modified) (6 diffs)
-
videosource.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mythtv/libs/libmythtv/cardutil.cpp
rae87d9d58 r65bcb3938 1622 1622 QStringList ret; 1623 1623 1624 if (("FIREWIRE" == cardtype) || 1625 ("FREEBOX" == cardtype) || 1626 ("HDHOMERUN" == cardtype)) 1627 { 1624 if (IsSingleInputCard(cardtype)) 1628 1625 ret += "MPEG2TS"; 1629 }1630 1626 else if ("DVB" == cardtype) 1631 1627 ret += ProbeDVBInputs(device); … … 1751 1747 bool is_dtv = !IsEncoder(cardtype) && !IsUnscanable(cardtype); 1752 1748 1753 if (("FIREWIRE" == cardtype) || 1754 ("FREEBOX" == cardtype) || 1755 ("HDHOMERUN" == cardtype)) 1756 { 1749 if (IsSingleInputCard(cardtype)) 1757 1750 inputs += "MPEG2TS"; 1758 }1759 1751 else if ("DVB" != cardtype) 1760 1752 inputs += ProbeV4LVideoInputs(device); -
mythtv/libs/libmythtv/cardutil.h
rae87d9d58 r65bcb3938 60 60 HDPVR = 12, 61 61 DVBS2 = 13, 62 IMPORT = 14, 62 63 }; 63 64 … … 92 93 if ("DVB_S2" == name) 93 94 return DVBS2; 95 if ("IMPORT" == name) 96 return IMPORT; 94 97 return ERROR_UNKNOWN; 95 98 } … … 99 102 return 100 103 (rawtype != "DVB") && 101 (rawtype != "FIREWIRE") && 104 (rawtype != "FIREWIRE") && (rawtype != "IMPORT") && 102 105 (rawtype != "HDHOMERUN") && (rawtype != "FREEBOX"); 103 106 } … … 111 114 { 112 115 return 113 (rawtype == "FIREWIRE") || 116 (rawtype == "FIREWIRE") || (rawtype == "IMPORT") || 114 117 (rawtype == "HDPVR" || (rawtype == "V4L")); 115 118 } … … 139 142 (rawtype == "V4L") || (rawtype == "MPEG") || 140 143 (rawtype == "HDPVR"); 144 } 145 146 static bool IsSingleInputCard(const QString &rawtype) 147 { 148 return 149 (rawtype == "FIREWIRE") || (rawtype == "FREEBOX") || 150 (rawtype == "HDHOMERUN") || (rawtype == "IMPORT"); 141 151 } 142 152 -
mythtv/libs/libmythtv/dbcheck.cpp
rae87d9d58 r65bcb3938 18 18 19 19 /// This is the DB schema version expected by the running MythTV instance. 20 const QString currentDatabaseVersion = "124 7";20 const QString currentDatabaseVersion = "1248"; 21 21 22 22 static bool UpdateDBVersionNumber(const QString &newnumber); … … 135 135 136 136 The 'defaultinput' field is a another important field for all 137 cards except "FIREWIRE", "FREEBOX" and "HDHOMERUN" cards.137 cards except "FIREWIRE", "FREEBOX", "HDHOMERUN", and "IMPORT" cards. 138 138 It specifies which 139 139 input of the card to use. This does not have to mean a specific … … 4937 4937 if (!performActualUpdate(updates, "1247", dbver)) 4938 4938 return false; 4939 4940 4941 4939 } 4940 4941 if (dbver == "1247") 4942 { 4943 const char *updates[] = { 4944 "INSERT INTO profilegroups SET name = \"Import Recorder\", cardtype = 'IMPORT', is_default = 1;", 4945 "INSERT INTO recordingprofiles SET name = \"Default\", profilegroup = 14;", 4946 "INSERT INTO recordingprofiles SET name = \"Live TV\", profilegroup = 14;", 4947 "INSERT INTO recordingprofiles SET name = \"High Quality\", profilegroup = 14;", 4948 "INSERT INTO recordingprofiles SET name = \"Low Quality\", profilegroup = 14;", 4949 NULL 4950 }; 4951 if (!performActualUpdate(updates, "1248", dbver)) 4952 return false; 4942 4953 } 4943 4954 -
mythtv/libs/libmythtv/libmythtv.pro
rae87d9d58 r65bcb3938 425 425 SOURCES += dtvrecorder.cpp 426 426 427 # Import recorder 428 HEADERS += importrecorder.h 429 SOURCES += importrecorder.cpp 430 427 431 # Simple NuppelVideo Recorder 428 432 using_ffmpeg_threads:DEFINES += USING_FFMPEG_THREADS -
mythtv/libs/libmythtv/tv_rec.cpp
rae87d9d58 r65bcb3938 55 55 #include "iptvrecorder.h" 56 56 #include "firewirerecorder.h" 57 #include "importrecorder.h" 57 58 58 59 #include "channelgroup.h" … … 180 181 #endif 181 182 } 182 else if (genOpt.cardtype == "MPEG" && 183 genOpt.videodev.toLower().left(5) == "file:") 183 else if ((genOpt.cardtype == "IMPORT") || 184 (genOpt.cardtype == "MPEG" && 185 genOpt.videodev.toLower().left(5) == "file:")) 184 186 { 185 187 channel = new DummyChannel(this); … … 395 397 396 398 // If this isn't a recording for this instance to make, we are done 397 if (rcinfo->cardid != cardid)399 if (rcinfo->cardid != (uint)cardid) 398 400 return; 399 401 … … 1016 1018 recorder->SetOption("mrl", genOpt.videodev); 1017 1019 #endif // USING_IPTV 1020 } 1021 else if (genOpt.cardtype == "IMPORT") 1022 { 1023 recorder = new ImportRecorder(this); 1018 1024 } 1019 1025 else … … 1618 1624 if ((1 == pendingRecordings.size()) && 1619 1625 (*it).ask && 1620 ((*it).info->cardid == cardid) &&1626 ((*it).info->cardid == (uint)cardid) && 1621 1627 (GetState() == kState_WatchingLiveTV)) 1622 1628 { … … 3992 3998 if (lastTuningRequest.flags & kFlagRecording) 3993 3999 { 3994 SetRingBuffer(new RingBuffer(rec->GetFileName(), true)); 3995 if (!ringBuffer->IsOpen()) 4000 bool write = genOpt.cardtype != "IMPORT"; 4001 VERBOSE(VB_IMPORTANT, LOC + QString("rec->GetFileName(): '%1'") 4002 .arg(rec->GetFileName())); 4003 SetRingBuffer(new RingBuffer(rec->GetFileName(), write)); 4004 if (!ringBuffer->IsOpen() && write) 3996 4005 { 3997 4006 VERBOSE(VB_IMPORTANT, LOC_ERR + -
mythtv/libs/libmythtv/videosource.cpp
rae87d9d58 r65bcb3938 1633 1633 }; 1634 1634 1635 class ImportConfigurationGroup : public VerticalConfigurationGroup 1636 { 1637 public: 1638 ImportConfigurationGroup(CaptureCard& a_parent): 1639 VerticalConfigurationGroup(false, true, false, false), 1640 parent(a_parent) 1641 { 1642 setUseLabel(false); 1643 addChild(new SingleCardInput(parent)); 1644 }; 1645 1646 private: 1647 CaptureCard &parent; 1648 }; 1649 1635 1650 class HDHomeRunExtra : public ConfigurationWizard 1636 1651 { … … 1998 2013 addTarget("FREEBOX", new IPTVConfigurationGroup(parent)); 1999 2014 #endif // USING_IPTV 2015 2016 addTarget("IMPORT", new ImportConfigurationGroup(parent)); 2000 2017 } 2001 2018 … … 2201 2218 setting->addSelection(QObject::tr("Network Recorder"), "FREEBOX"); 2202 2219 #endif // USING_IPTV 2220 2221 setting->addSelection(QObject::tr("Import Recorder"), "IMPORT"); 2203 2222 } 2204 2223
Note: See TracChangeset
for help on using the changeset viewer.
