tv-casting-app: turning off extended discovery (#26804)

* tv-casting-app: turning off extended discovery (#170)

* Moving mTimeSource declaration behind CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY
diff --git a/examples/tv-casting-app/tv-casting-common/include/CHIPProjectAppConfig.h b/examples/tv-casting-app/tv-casting-common/include/CHIPProjectAppConfig.h
index 11f82cf..a07482b 100644
--- a/examples/tv-casting-app/tv-casting-common/include/CHIPProjectAppConfig.h
+++ b/examples/tv-casting-app/tv-casting-common/include/CHIPProjectAppConfig.h
@@ -37,7 +37,7 @@
 
 #define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY_CLIENT 1
 
-#define CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY 1
+#define CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY 0
 
 #define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONABLE_DEVICE_TYPE 1
 
diff --git a/src/app/server/Dnssd.h b/src/app/server/Dnssd.h
index 60f057c..072af4b 100644
--- a/src/app/server/Dnssd.h
+++ b/src/app/server/Dnssd.h
@@ -135,8 +135,6 @@
     //
     bool HaveOperationalCredentials();
 
-    Time::TimeSource<Time::Source::kSystem> mTimeSource;
-
     FabricTable * mFabricTable                             = nullptr;
     CommissioningModeProvider * mCommissioningModeProvider = nullptr;
 
@@ -148,6 +146,8 @@
     Optional<uint16_t> mEphemeralDiscriminator;
 
 #if CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY
+    Time::TimeSource<Time::Source::kSystem> mTimeSource;
+
     /// Get the current extended discovery timeout (set by
     /// SetExtendedDiscoveryTimeoutSecs, or the configuration default if not set).
     int32_t GetExtendedDiscoveryTimeoutSecs();