Skip to content

Commit c476757

Browse files
rm unneeded vars
1 parent a8c8495 commit c476757

6 files changed

Lines changed: 9 additions & 15 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,8 @@ lk token create \
622622
```
623623

624624
# Deprecation
625-
- setOn*FrameCallback with TrackSource is deprecated. Use track name instead. This will be removed on 06/01/2026.
626-
- All public headers that do not follow `camelBack()` case. This will be removed on 06/01/2026.
625+
NOTE: With the official 1.0.0 release we have introduced breaking changes to previous unofficial versions in order
626+
to align with other LiveKit client SDKs. See [PR #143](https://github.com/livekit/client-sdk-cpp/pull/143) for the source code changes.
627627

628628
<!--BEGIN_REPO_NAV-->
629629
<br/><table>

‎include/livekit/remote_audio_track.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ class LIVEKIT_API RemoteAudioTrack : public Track {
5050
/// Returns a concise, human-readable string summarizing the track,
5151
/// including its SID and name. Useful for debugging and logging.
5252
std::string toString() const;
53-
5453
};
5554

5655
} // namespace livekit

‎include/livekit/remote_video_track.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ class LIVEKIT_API RemoteVideoTrack : public Track {
5050
/// Returns a concise, human-readable string summarizing the track,
5151
/// including its SID and name. Useful for debugging and logging.
5252
std::string toString() const;
53-
5453
};
5554

5655
} // namespace livekit

‎include/livekit/subscription_thread_dispatcher.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,9 @@ class LIVEKIT_API SubscriptionThreadDispatcher {
161161
/// If no matching callback is registered, this is a no-op.
162162
///
163163
/// @param participant_identity Identity of the remote participant.
164-
/// @param source Track source associated with the subscription.
165164
/// @param track_name Track name associated with the subscription.
166165
/// @param track Subscribed remote track to read from.
167-
void handleTrackSubscribed(const std::string& participant_identity, TrackSource source, const std::string& track_name,
166+
void handleTrackSubscribed(const std::string& participant_identity, const std::string& track_name,
168167
const std::shared_ptr<Track>& track);
169168

170169
/// Stop reader dispatch for an unsubscribed remote track.

‎src/room.cpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,7 @@ void Room::onEvent(const FfiEvent& event) {
636636
}
637637

638638
if (subscription_thread_dispatcher_ && remote_track && rpublication) {
639-
subscription_thread_dispatcher_->handleTrackSubscribed(identity, rpublication->source(),
640-
rpublication->name(), remote_track);
639+
subscription_thread_dispatcher_->handleTrackSubscribed(identity, rpublication->name(), remote_track);
641640
}
642641
break;
643642
}

‎src/subscription_thread_dispatcher.cpp‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,19 +143,17 @@ void SubscriptionThreadDispatcher::clearOnVideoFrameCallback(const std::string&
143143
}
144144
}
145145

146-
void SubscriptionThreadDispatcher::handleTrackSubscribed(const std::string& participant_identity, TrackSource source,
146+
void SubscriptionThreadDispatcher::handleTrackSubscribed(const std::string& participant_identity,
147147
const std::string& track_name,
148148
const std::shared_ptr<Track>& track) {
149149
if (!track) {
150-
LK_LOG_WARN(
151-
"Ignoring subscribed track dispatch for participant={} source={} "
152-
"because track is null",
153-
participant_identity, static_cast<int>(source));
150+
LK_LOG_WARN("Ignoring subscribed track dispatch for participant={} track_name={} because track is null",
151+
participant_identity, track_name);
154152
return;
155153
}
156154

157-
LK_LOG_DEBUG("Handling subscribed track for participant={} source={} kind={}", participant_identity,
158-
static_cast<int>(source), trackKindName(track->kind()));
155+
LK_LOG_DEBUG("Handling subscribed track for participant={} track_name={} kind={}", participant_identity, track_name,
156+
trackKindName(track->kind()));
159157

160158
const CallbackKey key{participant_identity, track_name};
161159
std::thread old_thread;

0 commit comments

Comments
 (0)