Browse Source

Merge "video: driver: reject unsupported resolution in output streamon"

qctecmdr 4 năm trước cách đây
mục cha
commit
f7485924fd
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      driver/vidc/src/msm_vdec.c

+ 4 - 0
driver/vidc/src/msm_vdec.c

@@ -1684,6 +1684,10 @@ int msm_vdec_streamon_output(struct msm_vidc_inst *inst)
 		return -EINVAL;
 	}
 
+	rc = msm_vidc_check_session_supported(inst);
+	if (rc)
+		return rc;
+
 	rc = msm_vdec_update_max_map_output_count(inst);
 	if (rc)
 		return rc;