Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #169 : missing pids in RTCP and DESCRIBE messages when transforming #179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions src/input/DeviceData.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ class DeviceData :
/// @param params
void parseAndUpdatePidsTable(const TransportParamVector& params);

///
void copyFilterPidsTable(const DeviceData &source) {
_filter.copyPidTable(source._filter);
}

int hasLock() const;

fe_status_t getSignalStatus() const;
Expand Down
4 changes: 4 additions & 0 deletions src/input/Transformation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ const DeviceData &Transformation::transformDeviceData(const DeviceData &deviceDa
snr = 15;
}
_transformedDeviceData.setMonitorData(status, strength, snr, ber, ublocks);

// copy the pid filtering list
_transformedDeviceData.copyFilterPidsTable(deviceData);

}
return (_transform && _enabled && _fileParsed) ? _transformedDeviceData : deviceData;
}
Expand Down
7 changes: 7 additions & 0 deletions src/mpegts/Filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ class Filter {
return _sdt;
}

///
void copyPidTable(const Filter &source) {
base::MutexLock lock(_mutex);
_pidTable = source._pidTable;
return;
}

// =========================================================================
// =========================================================================

Expand Down