mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
dvbsrc: warn on wrong DVB-T2 stream ID value
Stream ID, used for DVB-T2/S2 and ISDB-S can not exceed 255 for the former. Change makes this explicit.
This commit is contained in:
parent
5023a7c85d
commit
549785a432
1 changed files with 4 additions and 0 deletions
|
@ -2436,6 +2436,10 @@ gst_dvbsrc_set_fe_params (GstDvbSrc * object, struct dtv_properties *props)
|
|||
"transmission mode should be either AUTO, 1K, 2K, 4K, 8K, 16K "
|
||||
"or 32K");
|
||||
}
|
||||
if (object->stream_id > 255) {
|
||||
GST_WARNING_OBJECT (object, "Wrong DVB-T2 stream ID '%d'. Value "
|
||||
"can't be greater than 255", object->stream_id);
|
||||
}
|
||||
}
|
||||
set_prop (props->props, &n, DTV_BANDWIDTH_HZ, object->bandwidth);
|
||||
set_prop (props->props, &n, DTV_CODE_RATE_HP, object->code_rate_hp);
|
||||
|
|
Loading…
Reference in a new issue