Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion moq-transport/src/session/subscribed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,10 @@ impl Subscribed {
}

let mut object_count = 0;
let mut current_object_id: u64 = 0;
while let Some(mut subgroup_object_reader) = subgroup_reader.next().await? {
let subgroup_object = data::SubgroupObjectExt {
object_id_delta: 0, // before delta logic, used to be subgroup_object_reader.object_id,
object_id_delta: subgroup_object_reader.object_id - current_object_id,
extension_headers: subgroup_object_reader.extension_headers.clone(), // Pass through extension headers
payload_length: subgroup_object_reader.size,
status: if subgroup_object_reader.size == 0 {
Expand Down Expand Up @@ -342,6 +343,7 @@ impl Subscribed {
chunks_sent,
bytes_sent
);
current_object_id = subgroup_object_reader.object_id;
object_count += 1;
}

Expand Down