mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
dvbsrc: add DVB-S2 sub-stream ID check
Disable if invalid (> 255) instead of blindy setting this property regardless of its actual value.
This commit is contained in:
parent
e41b1c510a
commit
25543d70a7
1 changed files with 5 additions and 0 deletions
|
@ -2549,6 +2549,11 @@ gst_dvbsrc_set_fe_params (GstDvbSrc * object, struct dtv_properties *props)
|
|||
set_prop (props->props, &n, DTV_MODULATION, object->modulation);
|
||||
|
||||
if (object->delsys == SYS_DVBS2) {
|
||||
if (object->stream_id > 255) {
|
||||
GST_WARNING_OBJECT (object, "Invalid (> 255) DVB-S2 stream ID '%d'. "
|
||||
"Disabling sub-stream filtering", object->stream_id);
|
||||
object->stream_id = NO_STREAM_ID_FILTER;
|
||||
}
|
||||
set_prop (props->props, &n, DTV_PILOT, object->pilot);
|
||||
set_prop (props->props, &n, DTV_ROLLOFF, object->rolloff);
|
||||
set_prop (props->props, &n, DTV_STREAM_ID, object->stream_id);
|
||||
|
|
Loading…
Reference in a new issue