mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
dvbsrc: add checks on allowed DVB-T bandwidths
This commit is contained in:
parent
c1d48d4acd
commit
34216b8332
1 changed files with 5 additions and 0 deletions
|
@ -2384,6 +2384,11 @@ gst_dvbsrc_set_fe_params (GstDvbSrc * object, struct dtv_properties *props)
|
|||
GST_WARNING_OBJECT (object, "Wrong DVB-T parameter combination: "
|
||||
"transmission mode should be either AUTO, 2K or 8K");
|
||||
}
|
||||
if (object->bandwidth != 6000000 && object->bandwidth != 7000000 &&
|
||||
object->bandwidth != 8000000) {
|
||||
GST_WARNING_OBJECT (object, "Wrong DVB-T parameter value: bandwidth "
|
||||
"is %d but only 6, 7 and 8 MHz are allowed", object->bandwidth);
|
||||
}
|
||||
case SYS_DVBT2:
|
||||
if (object->delsys != SYS_DVBT &&
|
||||
object->transmission_mode != TRANSMISSION_MODE_AUTO &&
|
||||
|
|
Loading…
Reference in a new issue